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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 1024553010: [Sync] Add support for immediately enabling wallet datatype (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 5 years, 9 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/sync/profile_sync_components_factory_impl.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc
index 1d0514773111a980750e0a34c7b756e91565c794..c6b15385036aad5a5f9a7493714f79c5c743f38c 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
@@ -229,11 +229,9 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
new AutofillProfileDataTypeController(this, profile_));
}
- if (profile_->GetPrefs()->GetBoolean(
- autofill::prefs::kAutofillWalletSyncExperimentEnabled) &&
- !disabled_types.Has(syncer::AUTOFILL_WALLET_DATA)) {
- // The feature can be enabled by sync experiment *or* command line flag,
- // and additionally the sync type must be enabled.
+ // Autofill wallet sync is enabled by default, but behind a syncer experiment
+ // enforced by the datatype controller. Register unless explicitly disabled.
+ if (!disabled_types.Has(syncer::AUTOFILL_WALLET_DATA)) {
pss->RegisterDataTypeController(
new browser_sync::AutofillWalletDataTypeController(this, profile_));
}

Powered by Google App Engine
This is Rietveld 408576698