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

Unified Diff: chrome/browser/autofill/autofill_manager.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
« no previous file with comments | « chrome/browser/about_flags_unittest.cc ('k') | chrome/browser/background_contents_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index 699b93d00d696fe0d448a8ff124340f6609ec326..c5f6781e284d360e92466c071f1dfef1525c5cc1 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -250,16 +250,24 @@ void AutofillManager::RegisterBrowserPrefs(PrefService* prefs) {
// static
void AutofillManager::RegisterUserPrefs(PrefService* prefs) {
- prefs->RegisterBooleanPref(prefs::kAutofillEnabled, true);
+ prefs->RegisterBooleanPref(prefs::kAutofillEnabled,
+ true,
+ PrefService::SYNCABLE_PREF);
#if defined(OS_MACOSX)
- prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, true);
+ prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
+ true,
+ PrefService::SYNCABLE_PREF);
#else
- prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, false);
+ prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
+ false,
+ PrefService::UNSYNCABLE_PREF);
#endif
prefs->RegisterDoublePref(prefs::kAutofillPositiveUploadRate,
- kAutofillPositiveUploadRateDefaultValue);
+ kAutofillPositiveUploadRateDefaultValue,
+ PrefService::UNSYNCABLE_PREF);
prefs->RegisterDoublePref(prefs::kAutofillNegativeUploadRate,
- kAutofillNegativeUploadRateDefaultValue);
+ kAutofillNegativeUploadRateDefaultValue,
+ PrefService::UNSYNCABLE_PREF);
}
void AutofillManager::DidNavigateMainFramePostCommit(
« no previous file with comments | « chrome/browser/about_flags_unittest.cc ('k') | chrome/browser/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698