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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix 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/shown_sections_handler.cc
diff --git a/chrome/browser/ui/webui/shown_sections_handler.cc b/chrome/browser/ui/webui/shown_sections_handler.cc
index c8811c30ae649ab1df2f5f137fd5a7d170e94963..63635295764594785892026a01d2383382438609 100644
--- a/chrome/browser/ui/webui/shown_sections_handler.cc
+++ b/chrome/browser/ui/webui/shown_sections_handler.cc
@@ -107,9 +107,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