summaryrefslogtreecommitdiffstats
path: root/b2g/components/OopCommandLine.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-03 06:25:10 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-03 06:25:10 -0500
commit8b8c65072aedef94610748ce92c2ed3a19fd5517 (patch)
tree8614d386acf5db7a77b08d19a5854a7d75dab015 /b2g/components/OopCommandLine.js
parent8c3a46bd13a0660a3ff1e0379dbf515873a852d2 (diff)
downloadUXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar
UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar.gz
UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar.lz
UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar.xz
UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.zip
Purge b2g/
Diffstat (limited to 'b2g/components/OopCommandLine.js')
-rw-r--r--b2g/components/OopCommandLine.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/b2g/components/OopCommandLine.js b/b2g/components/OopCommandLine.js
deleted file mode 100644
index 658bbdde5..000000000
--- a/b2g/components/OopCommandLine.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "Services", "resource://gre/modules/Services.jsm");
-
-function oopCommandlineHandler() {
-}
-
-oopCommandlineHandler.prototype = {
- handle: function(cmdLine) {
- let oopFlag = cmdLine.handleFlag("oop", false);
- if (oopFlag) {
- /**
- * Manipulate preferences by adding to the *default* branch. Adding
- * to the default branch means the changes we make won"t get written
- * back to user preferences.
- */
- let prefs = Services.prefs
- let branch = prefs.getDefaultBranch("");
-
- try {
- // Turn on all OOP services, making desktop run similar to phone
- // environment
- branch.setBoolPref("dom.ipc.tabs.disabled", false);
- branch.setBoolPref("layers.acceleration.disabled", false);
- branch.setBoolPref("layers.offmainthreadcomposition.async-animations", true);
- branch.setBoolPref("layers.async-video.enabled", true);
- branch.setBoolPref("layers.async-pan-zoom.enabled", true);
- branch.setCharPref("gfx.content.azure.backends", "cairo");
- } catch (e) { }
-
- }
- if (cmdLine.state == Ci.nsICommandLine.STATE_REMOTE_AUTO) {
- cmdLine.preventDefault = true;
- }
- },
-
- helpInfo: " --oop Use out-of-process model in B2G\n",
- classID: Components.ID("{e30b0e13-2d12-4cb0-bc4c-4e617a1bf76e}"),
- QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
-};
-
-this.NSGetFactory = XPCOMUtils.generateNSGetFactory([oopCommandlineHandler]);