Bug 1129607 - Init the search service earlier so the country code is fetched before we attempt to get the engine list r=margaret a=sylvestre
authorMark Finkle <mfinkle@mozilla.com>
Fri, 06 Feb 2015 17:13:45 -0500
changeset 249641 df8447ffc4ca2d36f94e6ceb5e3054659bba9adb
parent 249640 eba7d8f6993aec57d4074e37774929f6eef19aba
child 249642 c02f3626cfb98fe60cba4170633d96c08bb154e5
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, sylvestre
bugs1129607
milestone37.0a2
Bug 1129607 - Init the search service earlier so the country code is fetched before we attempt to get the engine list r=margaret a=sylvestre
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -366,16 +366,17 @@ var BrowserApp = {
       try {
         BrowserApp.deck.removeEventListener("DOMContentLoaded", BrowserApp_delayedStartup, false);
         Services.obs.notifyObservers(window, "browser-delayed-startup-finished", "");
         Messaging.sendRequest({ type: "Gecko:DelayedStartup" });
 
         // Queue up some other performance-impacting initializations
         Services.tm.mainThread.dispatch(function() {
           Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
+          Services.search.init();
 
           CastingApps.init();
           DownloadNotifications.init();
 
           // Delay this a minute because there's no rush
           setTimeout(() => {
             BrowserApp.gmpInstallManager = new GMPInstallManager();
             BrowserApp.gmpInstallManager.simpleCheckAndInstall().then(null, () => {});