Bug 710845 - Don't show disabled search engines in AwesomeBar. r=mfinkle
authorBrian Nicholson <bnicholson@mozilla.com>
Mon, 30 Jan 2012 18:14:53 -0800
changeset 87015 192205ad7f9cebc99c4ef46482ab57d6230e8590
parent 87014 934ce089223cf570c51c798adbe3356ffec12b4c
child 87016 a5337afc5350a711ebce44d9e1644f5109818576
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs710845
milestone12.0a1
Bug 710845 - Don't show disabled search engines in AwesomeBar. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -765,17 +765,17 @@ var BrowserApp = {
     else {
       let pref = Cc["@mozilla.org/pref-localizedstring;1"].createInstance(Ci.nsIPrefLocalizedString);
       pref.data = json.value;
       Services.prefs.setComplexValue(json.name, Ci.nsISupportsString, pref);
     }
   },
 
   getSearchEngines: function() {
-    let engineData = Services.search.getEngines({});
+    let engineData = Services.search.getVisibleEngines({});
     let searchEngines = engineData.map(function (engine) {
       return {
         name: engine.name,
         iconURI: engine.iconURI.spec
       };
     });
 
     sendMessageToJava({