Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 11412291: Creating a skeleton for Google Now for Chrome implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Travis' CR Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/google_now/google_now_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | chrome/browser/ui/google_now/google_now_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698