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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.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/search_engines/template_url_prepopulate_data.cc
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc
index 4498c4890b3ddcc8caafbff63105a11d65c09e59..e19384e8d49acc8b280f5ee5a128651294087a5d 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -3341,11 +3341,18 @@ void GetPrepopulationSetFromCountryID(PrefService* prefs,
namespace TemplateURLPrepopulateData {
void RegisterUserPrefs(PrefService* prefs) {
- prefs->RegisterIntegerPref(prefs::kCountryIDAtInstall, kCountryIDUnknown);
- prefs->RegisterListPref(prefs::kSearchProviderOverrides);
- prefs->RegisterIntegerPref(prefs::kSearchProviderOverridesVersion, -1);
+ prefs->RegisterIntegerPref(prefs::kCountryIDAtInstall,
+ kCountryIDUnknown,
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterListPref(prefs::kSearchProviderOverrides,
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterIntegerPref(prefs::kSearchProviderOverridesVersion,
+ -1,
+ PrefService::UNSYNCABLE_PREF);
// Obsolete pref, for migration.
- prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall, -1);
+ prefs->RegisterIntegerPref(prefs::kGeoIDAtInstall,
+ -1,
+ PrefService::UNSYNCABLE_PREF);
}
int GetDataVersion(PrefService* prefs) {
« no previous file with comments | « chrome/browser/search_engines/template_url_model.cc ('k') | chrome/browser/sync/abstract_profile_sync_service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698