Bug 1184822 - Use classId to get provider. r=fabrice
authorEric Tsai <md.tsai@gmail.com>
Thu, 06 Aug 2015 11:54:14 +0800
changeset 288438 b5b865a454145f6a0397a477ce504101f0853c6c
parent 288437 5ed432c81ec92f78a4603ad37fe62ce5988beefb
child 288439 bee58bfd8bcf532df396fc270456950a87621cab
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1184822
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1184822 - Use classId to get provider. r=fabrice
dom/system/SystemUpdateService.jsm
--- a/dom/system/SystemUpdateService.jsm
+++ b/dom/system/SystemUpdateService.jsm
@@ -22,17 +22,17 @@ let debug = Services.prefs.getBoolPref("
               : (aMsg) => {};
 
 XPCOMUtils.defineLazyServiceGetter(this, "ppmm",
                                    "@mozilla.org/parentprocessmessagemanager;1",
                                    "nsIMessageBroadcaster");
 
 function ActiveProvider(aProvider) {
   this.id = aProvider.id;
-  this._instance = Cc[aProvider.contractId].getService(Ci.nsISystemUpdateProvider);
+  this._instance = Components.classesByID[aProvider.id].getService(Ci.nsISystemUpdateProvider);
   this._instance.setListener(this);
 }
 
 ActiveProvider.prototype = {
   QueryInterface: XPCOMUtils.generateQI([Ci.nsISystemUpdateListener]),
 
   _activity: PROVIDER_ACTIVITY_IDLE,