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..68fd3ff14411471d71bc142c674705275559913a 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -173,6 +173,10 @@ |
#include "policy/policy_constants.h" |
#endif |
+#if defined(ENABLE_GOOGLE_NOW) |
+#include "chrome/browser/ui/google_now/google_now_service_factory.h" |
+#endif |
+ |
#if defined(ENABLE_LANGUAGE_DETECTION) |
#include "chrome/browser/language_usage_metrics.h" |
#endif |
@@ -942,6 +946,14 @@ void ChromeBrowserMainParts::PostBrowserStart() { |
RunPageCycler(); |
#endif |
+ // Create the instance of the Google Now service. |
+#if defined(ENABLE_GOOGLE_NOW) |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableGoogleNowIntegration)) { |
+ GoogleNowServiceFactory::GetForProfile(profile_); |
+ } |
+#endif |
+ |
for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
chrome_extra_parts_[i]->PostBrowserStart(); |
#if !defined(OS_ANDROID) |