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

Unified Diff: components/autofill/core/browser/autofill_test_utils.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 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: components/autofill/core/browser/autofill_test_utils.cc
diff --git a/components/autofill/core/browser/autofill_test_utils.cc b/components/autofill/core/browser/autofill_test_utils.cc
index c69611a46711a272b5a1f8b747db88b8163849c0..a8be18bce8b34ce26a6279dbcdf9b0a00ba8b666 100644
--- a/components/autofill/core/browser/autofill_test_utils.cc
+++ b/components/autofill/core/browser/autofill_test_utils.cc
@@ -40,19 +40,14 @@ scoped_ptr<PrefService> PrefServiceForTesting() {
// PDM depends on this pref, which is normally registered in
// SigninManagerFactory.
- registry->RegisterStringPref(
- ::prefs::kGoogleServicesAccountId, std::string(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterStringPref(::prefs::kGoogleServicesAccountId,
+ std::string());
// PDM depends on these prefs, which are normally registered in
// AccountTrackerServiceFactory.
- registry->RegisterListPref(
- AccountTrackerService::kAccountInfoPref,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterIntegerPref(
- ::prefs::kAccountIdMigrationState,
- AccountTrackerService::MIGRATION_NOT_STARTED,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterListPref(AccountTrackerService::kAccountInfoPref);
+ registry->RegisterIntegerPref(::prefs::kAccountIdMigrationState,
+ AccountTrackerService::MIGRATION_NOT_STARTED);
base::PrefServiceFactory factory;
factory.set_user_prefs(make_scoped_refptr(new TestingPrefStore()));

Powered by Google App Engine
This is Rietveld 408576698