Chromium Code Reviews| 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. |
|
rgustafson
2012/12/03 19:28:59
Just to clarify, this class (chrome_browser_main)
rgustafson
2012/12/03 19:38:03
Commenting on my own comment... The singleton prop
vadimt
2012/12/03 20:48:57
Done.
vadimt
2012/12/03 20:48:57
That's an incredibly good question! You've actuall
rgustafson
2012/12/04 00:38:01
Okay good, just wanted to make sure the multi-prof
|
| +#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()); |