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

Unified Diff: chrome/browser/sync/profile_sync_service_android.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 migration and android 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/test/integration/migration_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_android.cc
diff --git a/chrome/browser/sync/profile_sync_service_android.cc b/chrome/browser/sync/profile_sync_service_android.cc
index 039878f81233741543ccc9bf2c5f3dd4ba6c959e..c7350a8cc0b5ee78c1b59fbc731a273b5c19b814 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -64,6 +64,7 @@ enum ModelTypeSelection {
EXPERIMENTS = 1 << 12,
SUPERVISED_USER_SETTING = 1 << 13,
SUPERVISED_USER_WHITELIST = 1 << 14,
+ AUTOFILL_WALLET = 1 << 15,
nyquist 2015/03/26 00:07:01 Any reason why this isn't called AUTOFILL_WALLET_D
Nicolas Zea 2015/03/26 00:09:33 I think it needs to match the notification type, w
};
} // namespace
@@ -461,6 +462,9 @@ jlong ProfileSyncServiceAndroid::ModelTypeSetToSelection(
if (types.Has(syncer::AUTOFILL_PROFILE)) {
model_type_selection |= AUTOFILL_PROFILE;
}
+ if (types.Has(syncer::AUTOFILL_WALLET_DATA)) {
+ model_type_selection |= AUTOFILL_WALLET;
+ }
if (types.Has(syncer::PASSWORDS)) {
model_type_selection |= PASSWORD;
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/test/integration/migration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698