Bug 627911 (followup) - Use the String.browser getter [r=wesj]
authorMatt Brubeck <mbrubeck@mozilla.com>
Fri, 18 Mar 2011 15:12:12 -0700
changeset 67530 c9f894ae705d0fc5a5f1de550a9cb16bbd3d6780
parent 67529 ac2b12d9cb45763012b03c466317933c2842ff98
child 67531 bd05aa44a67b51c4ac1ffbad35d181d38cad565f
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj
bugs627911
Bug 627911 (followup) - Use the String.browser getter [r=wesj]
mobile/chrome/content/extensions.js
--- a/mobile/chrome/content/extensions.js
+++ b/mobile/chrome/content/extensions.js
@@ -276,17 +276,17 @@ var ExtensionsView = {
 
   hideOnSelect: function ev_handleEvent(aEvent) {
     // When list selection changes, be sure to close up any open options sections
     if (aEvent.target == this._list)
       this.hideOptions();
   },
 
   _createLocalAddon: function ev__createLocalAddon(aAddon) {
-    let strings = Services.strings.createBundle("chrome://browser/locale/browser.properties");
+    let strings = Strings.browser;
 
     let appManaged = (aAddon.scope == AddonManager.SCOPE_APPLICATION);
     let opType = this._getOpTypeForOperations(aAddon.pendingOperations);
     let updateable = (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) > 0;
     let uninstallable = (aAddon.permissions & AddonManager.PERM_CAN_UNINSTALL) > 0;
 
     let blocked = "";
     switch(aAddon.blocklistState) {
@@ -940,17 +940,17 @@ AddonInstallListener.prototype = {
         ExtensionsView.addItem(element, "local");
       }
     }
 
     element.setAttribute("status", "success");
 
     // If we are updating an add-on, change the status
     if (element.hasAttribute("updating")) {
-      let strings = Services.strings.createBundle("chrome://browser/locale/browser.properties");
+      let strings = Strings.browser;
       element.setAttribute("updateStatus", strings.formatStringFromName("addonUpdate.updated", [aAddon.version], 1));
       element.removeAttribute("updating");
     }
   },
 
   onInstallFailed: function(aInstall) {
     this._showInstallCompleteAlert(false);