Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index e93cc98b9bc7e07a81774b6ee4866a12d02dfcd7..bbcaf4934687fcaab23a25264821ee760e1908a6 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -84,6 +84,7 @@ |
#include "chrome/browser/translate/translate_manager.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_finder.h" |
+#include "chrome/browser/ui/google_now/google_now_service_factory.h" |
#include "chrome/browser/ui/startup/default_browser_prompt.h" |
#include "chrome/browser/ui/startup/startup_browser_creator.h" |
#include "chrome/browser/ui/uma_browsing_activity_observer.h" |
@@ -1406,6 +1407,14 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { |
CloudPrintProxyServiceFactory::GetForProfile(profile_); |
#endif |
+ // Create the instance of the Google Now service. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableGoogleNowIntegration)) { |
+ GoogleNowServiceFactory::GetForProfile(profile_); |
+ } |
+#endif |
+ |
// Start watching all browser threads for responsiveness. |
ThreadWatcherList::StartWatchingAll(parsed_command_line()); |