Bug 1169402 - In content do not immediately load TelemetryEnvironment.jsm via TelemetryStartup.js since it loads AddonManager.jsm which throws. r=gfritzsche

--HG--
extra : histedit_source : f4abc3be988b41a6f285244337a9d70e5ec26d97
This commit is contained in:
Jim Mathies 2015-06-03 06:45:24 -05:00
parent b2e82f94b1
commit d211ffda35

View File

@ -7,11 +7,15 @@
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.import("resource://gre/modules/TelemetryController.jsm", this);
Cu.import("resource://gre/modules/TelemetrySession.jsm", this);
Cu.import("resource://gre/modules/TelemetryEnvironment.jsm", this);
Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
XPCOMUtils.defineLazyModuleGetter(this, "TelemetryController",
"resource://gre/modules/TelemetryController.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "TelemetrySession",
"resource://gre/modules/TelemetrySession.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "TelemetryEnvironment",
"resource://gre/modules/TelemetryEnvironment.jsm");
/**
* TelemetryStartup is needed to forward the "profile-after-change" notification
* to TelemetryController.jsm.