Bug 813451: Update-available notifications don't get lost anymore, so the code from bug 801987 is no longer needed. r=marshall_law a=blocking-basecamp
authorChris Jones <jones.chris.g@gmail.com>
Tue, 20 Nov 2012 18:08:32 -0800
changeset 122377 ea33ecb57a6e8e735e5a8c0d961c4cccf0cdb4c7
parent 122376 4aa8acd0d44cdde84961cababfdd4b2fba9910ed
child 122378 b6e816f97d8edf32d10a0be4359169e6358dc375
push id273
push userlsblakk@mozilla.com
push dateThu, 14 Feb 2013 23:19:38 +0000
treeherdermozilla-release@c5e807a3f8b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarshall_law, blocking-basecamp
bugs813451, 801987
milestone19.0a2
Bug 813451: Update-available notifications don't get lost anymore, so the code from bug 801987 is no longer needed. r=marshall_law a=blocking-basecamp
b2g/components/UpdatePrompt.js
--- a/b2g/components/UpdatePrompt.js
+++ b/b2g/components/UpdatePrompt.js
@@ -316,24 +316,16 @@ UpdatePrompt.prototype = {
       log("Error: Couldn't reboot into recovery to apply FOTA update " +
           aOsUpdatePath);
     }
   },
 
   forceUpdateCheck: function UP_forceUpdateCheck() {
     log("Forcing update check");
 
-    // If we already have an active update available, don't try to
-    // download again, just prompt for install.
-    if (Services.um.activeUpdate) {
-      this.setUpdateStatus("check-complete");
-      this.showApplyPrompt(Services.um.activeUpdate);
-      return;
-    }
-
     let checker = Cc["@mozilla.org/updates/update-checker;1"]
                     .createInstance(Ci.nsIUpdateChecker);
     checker.checkForUpdates(this._updateCheckListener, true);
   },
 
   handleEvent: function UP_handleEvent(evt) {
     if (evt.type !== "mozContentEvent") {
       return;