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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase Created 9 years, 7 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/ui/webui/ntp/shown_sections_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/shown_sections_handler.cc b/chrome/browser/ui/webui/ntp/shown_sections_handler.cc
index 003c34f8adeb380ec2e2e7994f988c471c96718d..fdc42a8d2d012453b1ab5688692c0efade50b029 100644
--- a/chrome/browser/ui/webui/ntp/shown_sections_handler.cc
+++ b/chrome/browser/ui/webui/ntp/shown_sections_handler.cc
@@ -105,9 +105,12 @@ void ShownSectionsHandler::RegisterUserPrefs(PrefService* pref_service) {
#if defined(OS_CHROMEOS)
// Default to have expanded APPS and all other sections are minimized.
pref_service->RegisterIntegerPref(prefs::kNTPShownSections,
- APPS | MENU_THUMB | MENU_RECENT);
+ APPS | MENU_THUMB | MENU_RECENT,
+ PrefService::UNSYNCABLE_PREF);
#else
- pref_service->RegisterIntegerPref(prefs::kNTPShownSections, THUMB);
+ pref_service->RegisterIntegerPref(prefs::kNTPShownSections,
+ THUMB,
+ PrefService::UNSYNCABLE_PREF);
#endif
}
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/options/extension_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698