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

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: Self review Created 9 years, 8 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..489c34213f51bcd644f6a01ab494c0ff79b71f5f 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,
+ false /* don't sync pref */);
#else
- pref_service->RegisterIntegerPref(prefs::kNTPShownSections, THUMB);
+ pref_service->RegisterIntegerPref(prefs::kNTPShownSections,
+ THUMB,
+ false /* don't sync pref */);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698