summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/util
diff options
context:
space:
mode:
authorestade <estade@chromium.org>2015-02-03 13:08:15 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-03 21:09:16 +0000
commit4e911e45e27caf4a92dc71a60c32b20e77a17430 (patch)
tree4d28770a9b9b85eec54d1f70eff68610496f21ef /sync/internal_api/public/util
parenta8e467e27531289eefcdc1ecd163d93bf8c957da (diff)
downloadchromium_src-4e911e45e27caf4a92dc71a60c32b20e77a17430.zip
chromium_src-4e911e45e27caf4a92dc71a60c32b20e77a17430.tar.gz
chromium_src-4e911e45e27caf4a92dc71a60c32b20e77a17430.tar.bz2
Add sync experiment flag for wallet datatype.
If either the sync experiment OR the command line flag is present, the feature is enabled. (Enabling the feature also gives the user the ability to control it via a separate pref.) BUG= Review URL: https://codereview.chromium.org/875243003 Cr-Commit-Position: refs/heads/master@{#314407}
Diffstat (limited to 'sync/internal_api/public/util')
-rw-r--r--sync/internal_api/public/util/experiments.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h
index b61742d..d2b82c6 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