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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/ntp/suggestions_page_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index 2dab46a1a7f5abf92834a351b2f56d72c95eb118..126c0a7b65ff735dde173d360cdecc769acae936 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -228,15 +228,16 @@ void NewTabUI::OnShowBookmarkBarChanged() {
}
// static
-void NewTabUI::RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
+void NewTabUI::RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry) {
#if !defined(OS_ANDROID)
- AppLauncherHandler::RegisterUserPrefs(registry);
- NewTabPageHandler::RegisterUserPrefs(registry);
+ AppLauncherHandler::RegisterProfilePrefs(registry);
+ NewTabPageHandler::RegisterProfilePrefs(registry);
if (NewTabUI::IsDiscoveryInNTPEnabled())
- SuggestionsHandler::RegisterUserPrefs(registry);
+ SuggestionsHandler::RegisterProfilePrefs(registry);
#endif
- MostVisitedHandler::RegisterUserPrefs(registry);
- browser_sync::ForeignSessionHandler::RegisterUserPrefs(registry);
+ MostVisitedHandler::RegisterProfilePrefs(registry);
+ browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry);
}
// static
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/ntp/suggestions_page_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698