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

Unified Diff: chrome/browser/prefs/browser_prefs.cc

Issue 938713004: Add Now setting and migration logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style comments from robliao@ Created 5 years, 10 months 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
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 635f01e771e62bfff8847d5cf1de23a42e8865ab..c9e24e0b6f25581e05c12cc1b08106cf3dc4f474 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -62,6 +62,7 @@
#include "chrome/browser/task_manager/task_manager.h"
#include "chrome/browser/ui/app_list/app_list_prefs.h"
#include "chrome/browser/ui/app_list/app_list_service.h"
+#include "chrome/browser/ui/app_list/google_now_extension.h"
gab 2015/02/20 15:11:21 Make include use same ifdefs as the only code need
gab 2015/02/20 19:05:58 ping.
skare_ 2015/02/20 19:37:44 apologies, missed this one
#include "chrome/browser/ui/browser_ui_prefs.h"
#include "chrome/browser/ui/navigation_correction_tab_observer.h"
#include "chrome/browser/ui/network_profile_bubble.h"
@@ -574,6 +575,10 @@ void MigrateUserPrefs(Profile* profile) {
#if defined(OS_MACOSX) && !defined(OS_IOS)
autofill::AutofillManager::MigrateUserPrefs(prefs);
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+
+#if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST)
+ MigrateGoogleNowPrefs(profile);
+#endif
}
void MigrateBrowserPrefs(Profile* profile, PrefService* local_state) {
« no previous file with comments | « no previous file | chrome/browser/profiles/profile.cc » ('j') | chrome/browser/ui/app_list/google_now_extension.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698