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

Unified Diff: sync/internal_api/public/util/experiments.h

Issue 875243003: Add sync experiment flag for wallet datatype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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/core/common/autofill_pref_names.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/util/experiments.h
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h
index b61742d1a9c762f51cd49c93663cd2327773a802..d2b82c62363dadea5267785990b38c0991b6653b 100644
--- a/sync/internal_api/public/util/experiments.h
+++ b/sync/internal_api/public/util/experiments.h
@@ -16,6 +16,7 @@ const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance";
const char kGCMChannelTag[] = "gcm_channel";
const char kEnhancedBookmarksTag[] = "enhanced_bookmarks";
const char kGCMInvalidationsTag[] = "gcm_invalidations";
+const char kWalletSyncTag[] = "wallet_sync";
// A structure to hold the enable status of experimental sync features.
struct Experiments {
@@ -29,15 +30,16 @@ struct Experiments {
: favicon_sync_limit(200),
gcm_channel_state(UNSET),
enhanced_bookmarks_enabled(false),
- gcm_invalidations_enabled(true) // By default GCM channel is enabled.
- {}
+ gcm_invalidations_enabled(true), // By default GCM channel is enabled.
+ wallet_sync_enabled(false) {}
bool Matches(const Experiments& rhs) {
return (favicon_sync_limit == rhs.favicon_sync_limit &&
gcm_channel_state == rhs.gcm_channel_state &&
enhanced_bookmarks_enabled == rhs.enhanced_bookmarks_enabled &&
enhanced_bookmarks_ext_id == rhs.enhanced_bookmarks_ext_id &&
- gcm_invalidations_enabled == rhs.gcm_invalidations_enabled);
+ gcm_invalidations_enabled == rhs.gcm_invalidations_enabled &&
+ wallet_sync_enabled == rhs.wallet_sync_enabled);
}
// The number of favicons that a client is permitted to sync.
@@ -54,6 +56,9 @@ struct Experiments {
// Enhanced bookmarks extension id.
std::string enhanced_bookmarks_ext_id;
+
+ // Enable the Wallet Autofill sync datatype.
+ bool wallet_sync_enabled;
};
} // namespace syncer
« no previous file with comments | « components/autofill/core/common/autofill_pref_names.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698