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

Unified Diff: chrome/browser/ui/webui/ntp/most_visited_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/most_visited_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/most_visited_handler.cc b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
index 8b145f3c0ae62f3cce57606f66168235fcf321f4..25c9d267cbef2d388e1aa606bed9ccfd218be4fc 100644
--- a/chrome/browser/ui/webui/ntp/most_visited_handler.cc
+++ b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
@@ -368,8 +368,10 @@ std::string MostVisitedHandler::GetDictionaryKeyForURL(const std::string& url) {
// static
void MostVisitedHandler::RegisterUserPrefs(PrefService* prefs) {
- prefs->RegisterDictionaryPref(prefs::kNTPMostVisitedURLsBlacklist);
- prefs->RegisterDictionaryPref(prefs::kNTPMostVisitedPinnedURLs);
+ prefs->RegisterDictionaryPref(prefs::kNTPMostVisitedURLsBlacklist,
+ false /* don't sync pref */);
+ prefs->RegisterDictionaryPref(prefs::kNTPMostVisitedPinnedURLs,
+ false /* don't sync pref */);
}
// static

Powered by Google App Engine
This is Rietveld 408576698