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

Unified Diff: components/autofill/browser/autofill_manager.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 | « components/autofill/browser/autofill_manager.h ('k') | components/user_prefs/pref_registry_syncable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/autofill_manager.cc
diff --git a/components/autofill/browser/autofill_manager.cc b/components/autofill/browser/autofill_manager.cc
index 27df7e86bfdb7ef3da7fafc55a14d3750edc44a8..406daf7d7087ea7c58eb3ded5dae09c9c39e5665 100644
--- a/components/autofill/browser/autofill_manager.cc
+++ b/components/autofill/browser/autofill_manager.cc
@@ -222,25 +222,31 @@ AutofillManager::AutofillManager(content::WebContents* web_contents,
AutofillManager::~AutofillManager() {}
// static
-void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) {
- registry->RegisterBooleanPref(prefs::kAutofillEnabled,
- true,
- PrefRegistrySyncable::SYNCABLE_PREF);
+void AutofillManager::RegisterUserPrefs(
+ user_prefs::PrefRegistrySyncable* registry) {
+ registry->RegisterBooleanPref(
+ prefs::kAutofillEnabled,
+ true,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
#if defined(OS_MACOSX) || defined(OS_ANDROID)
- registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
- true,
- PrefRegistrySyncable::SYNCABLE_PREF);
+ registry->RegisterBooleanPref(
+ prefs::kAutofillAuxiliaryProfilesEnabled,
+ true,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
#else
- registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
- false,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(
+ prefs::kAutofillAuxiliaryProfilesEnabled,
+ false,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
#endif
- registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate,
- kAutofillPositiveUploadRateDefaultValue,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterDoublePref(prefs::kAutofillNegativeUploadRate,
- kAutofillNegativeUploadRateDefaultValue,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterDoublePref(
+ prefs::kAutofillPositiveUploadRate,
+ kAutofillPositiveUploadRateDefaultValue,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterDoublePref(
+ prefs::kAutofillNegativeUploadRate,
+ kAutofillNegativeUploadRateDefaultValue,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
void AutofillManager::DidNavigateMainFrame(
« no previous file with comments | « components/autofill/browser/autofill_manager.h ('k') | components/user_prefs/pref_registry_syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698