diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-02 04:25:47 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:26:25 +0200 |
commit | 73289f53892c4c48eedf8de5a40af74ff9b55a09 (patch) | |
tree | c3991d265b47fad7c75cf45812ac1963103ccf7b /toolkit/modules/subprocess/Subprocess.jsm | |
parent | 4acc0d58cb0fa989d609972493be363c105f2594 (diff) | |
download | UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar.gz UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar.lz UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.tar.xz UXP-73289f53892c4c48eedf8de5a40af74ff9b55a09.zip |
Issue #65 - Remove AppConstants from toolkit/modules
Except for secondscreen
Diffstat (limited to 'toolkit/modules/subprocess/Subprocess.jsm')
-rw-r--r-- | toolkit/modules/subprocess/Subprocess.jsm | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/toolkit/modules/subprocess/Subprocess.jsm b/toolkit/modules/subprocess/Subprocess.jsm index 6d0d27d77..e4e4156df 100644 --- a/toolkit/modules/subprocess/Subprocess.jsm +++ b/toolkit/modules/subprocess/Subprocess.jsm @@ -18,17 +18,16 @@ let EXPORTED_SYMBOLS = ["Subprocess"]; var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components; -Cu.import("resource://gre/modules/AppConstants.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/subprocess/subprocess_common.jsm"); -if (AppConstants.platform == "win") { - XPCOMUtils.defineLazyModuleGetter(this, "SubprocessImpl", - "resource://gre/modules/subprocess/subprocess_win.jsm"); -} else { - XPCOMUtils.defineLazyModuleGetter(this, "SubprocessImpl", - "resource://gre/modules/subprocess/subprocess_unix.jsm"); -} +#ifdef XP_WIN +XPCOMUtils.defineLazyModuleGetter(this, "SubprocessImpl", + "resource://gre/modules/subprocess/subprocess_win.jsm"); +#else +XPCOMUtils.defineLazyModuleGetter(this, "SubprocessImpl", + "resource://gre/modules/subprocess/subprocess_unix.jsm"); +#endif /** * Allows for creation of and communication with OS-level sub-processes. |