Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian

This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
This commit is contained in:
Kris Maglione
2018-01-29 15:20:18 -08:00
parent 7fe74fc136
commit 0bb74efdf1
2853 changed files with 8766 additions and 8764 deletions

View File

@@ -3,12 +3,12 @@
// The ext-* files are imported into the same scopes.
/* import-globals-from ext-toolkit.js */
XPCOMUtils.defineLazyModuleGetter(this, "ContextualIdentityService",
"resource://gre/modules/ContextualIdentityService.jsm");
ChromeUtils.defineModuleGetter(this, "ContextualIdentityService",
"resource://gre/modules/ContextualIdentityService.jsm");
XPCOMUtils.defineLazyPreferenceGetter(this, "containersEnabled",
"privacy.userContext.enabled");
Cu.import("resource://gre/modules/ExtensionPreferencesManager.jsm");
ChromeUtils.import("resource://gre/modules/ExtensionPreferencesManager.jsm");
var {
ExtensionError,