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

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: 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
« 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 ea32437cd740f4707818cc6887590ed1786fff6e..fb59b445d6451dabc23b99308f133eb80ff2320e 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -243,21 +243,30 @@ AutofillManager::~AutofillManager() {
// static
void AutofillManager::RegisterBrowserPrefs(PrefService* prefs) {
- prefs->RegisterDictionaryPref(prefs::kAutofillDialogPlacement);
+ prefs->RegisterDictionaryPref(prefs::kAutofillDialogPlacement,
+ false /* don't sync pref */);
}
// static
void AutofillManager::RegisterUserPrefs(PrefService* prefs) {
- prefs->RegisterBooleanPref(prefs::kAutofillEnabled, true);
+ prefs->RegisterBooleanPref(prefs::kAutofillEnabled,
+ true,
+ true /* sync pref */);
#if defined(OS_MACOSX)
- prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, true);
+ prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
dhollowa 2011/04/27 14:01:16 This should not be sync'd because it is not a cros
Nicolas Zea 2011/04/27 20:07:57 Thanks for catching this. The model associator act
+ true,
+ true /* sync pref */);
#else
- prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, false);
+ prefs->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
+ false,
+ true /* sync pref */);
#endif
prefs->RegisterDoublePref(prefs::kAutofillPositiveUploadRate,
- kAutofillPositiveUploadRateDefaultValue);
+ kAutofillPositiveUploadRateDefaultValue,
+ false /* don't sync pref */);
prefs->RegisterDoublePref(prefs::kAutofillNegativeUploadRate,
- kAutofillNegativeUploadRateDefaultValue);
+ kAutofillNegativeUploadRateDefaultValue,
+ false /* don't sync 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