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

Unified Diff: components/sync_driver/sync_prefs.cc

Issue 1110833002: [autofill] Sync server card and address metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work Created 5 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
Index: components/sync_driver/sync_prefs.cc
diff --git a/components/sync_driver/sync_prefs.cc b/components/sync_driver/sync_prefs.cc
index 9f8007548ef7d8d1db0a1a613f7c87a85d61c521..103ac9c29e93863bf0fb94d4f98094157510ca9e 100644
--- a/components/sync_driver/sync_prefs.cc
+++ b/components/sync_driver/sync_prefs.cc
@@ -252,9 +252,11 @@ const char* SyncPrefs::GetPrefNameForDataType(syncer::ModelType data_type) {
case syncer::AUTOFILL:
return prefs::kSyncAutofill;
case syncer::AUTOFILL_PROFILE:
- return prefs::kSyncAutofillWallet;
- case syncer::AUTOFILL_WALLET_DATA:
return prefs::kSyncAutofillProfile;
+ case syncer::AUTOFILL_WALLET_DATA:
+ return prefs::kSyncAutofillWallet;
+ case syncer::AUTOFILL_WALLET_METADATA:
+ return prefs::kSyncAutofillWalletMetadata;
case syncer::THEMES:
return prefs::kSyncThemes;
case syncer::TYPED_URLS:
@@ -351,6 +353,7 @@ void SyncPrefs::RegisterPrefGroups() {
pref_groups_[syncer::AUTOFILL].Put(syncer::AUTOFILL_PROFILE);
pref_groups_[syncer::AUTOFILL].Put(syncer::AUTOFILL_WALLET_DATA);
+ pref_groups_[syncer::AUTOFILL].Put(syncer::AUTOFILL_WALLET_METADATA);
pref_groups_[syncer::EXTENSIONS].Put(syncer::EXTENSION_SETTINGS);

Powered by Google App Engine
This is Rietveld 408576698