Bug 1002086 - UpdateService uses the non-existent nsIAddonUpdateCheckListener interface. r=ehsan
authorRobert Strong <robert.bugzilla@gmail.com>
Sun, 27 Apr 2014 16:13:04 -0700
changeset 180901 cebe712acbab5827f453c55ffd12ed456b6c5050
parent 180900 17fd295f094de41039fae65a9a1b2ea25fab39ef
child 180902 d78338aed492aa19697b950a4001cd1add6a9e87
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersehsan
bugs1002086
milestone31.0a1
Bug 1002086 - UpdateService uses the non-existent nsIAddonUpdateCheckListener interface. r=ehsan
toolkit/mozapps/update/nsUpdateService.js
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -2927,18 +2927,18 @@ UpdateService.prototype = {
   },
 
   // AddonUpdateListener
   onCompatibilityUpdateAvailable: function(addon) {
     // Remove the add-on from the list of add-ons that will become incompatible
     // with the new version of the application.
     for (var i = 0; i < this._incompatibleAddons.length; ++i) {
       if (this._incompatibleAddons[i].id == addon.id) {
-        LOG("UpdateService:onAddonUpdateEnded - found update for add-on ID: " +
-            addon.id);
+        LOG("UpdateService:onCompatibilityUpdateAvailable - found update for " +
+			"add-on ID: " + addon.id);
         this._incompatibleAddons.splice(i, 1);
       }
     }
   },
 
   onUpdateAvailable: function(addon, install) {
     if (getPref("getIntPref", PREF_APP_UPDATE_INCOMPATIBLE_MODE, 0) == 1)
       return;
@@ -3179,17 +3179,16 @@ UpdateService.prototype = {
                                     interfaces: [Ci.nsIApplicationUpdateService,
                                                  Ci.nsITimerCallback,
                                                  Ci.nsIObserver],
                                     flags: Ci.nsIClassInfo.SINGLETON}),
 
   _xpcom_factory: UpdateServiceFactory,
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIApplicationUpdateService,
                                          Ci.nsIUpdateCheckListener,
-                                         Ci.nsIAddonUpdateCheckListener,
                                          Ci.nsITimerCallback,
                                          Ci.nsIObserver])
 };
 
 /**
  * A service to manage active and past updates.
  * @constructor
  */