summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public
diff options
context:
space:
mode:
authoryefim@chromium.org <yefim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 21:16:40 +0000
committeryefim@chromium.org <yefim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 21:16:40 +0000
commitf93a6c6b376fe2ce3bb26698b6c4cb4cd0e36c28 (patch)
treed8ca4060b70c2d4fb5b7240e8c3f2daaef6938c6 /sync/internal_api/public
parent602f2dd4ad787a55009f32dd773d2b0d2b139a11 (diff)
downloadchromium_src-f93a6c6b376fe2ce3bb26698b6c4cb4cd0e36c28.zip
chromium_src-f93a6c6b376fe2ce3bb26698b6c4cb4cd0e36c28.tar.gz
chromium_src-f93a6c6b376fe2ce3bb26698b6c4cb4cd0e36c28.tar.bz2
Enhanced bookmarks: added support for sync based experiment
BUG=321393 Review URL: https://codereview.chromium.org/156103002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public')
-rw-r--r--sync/internal_api/public/util/experiments.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h
index 4b89e43..18a0887 100644
--- a/sync/internal_api/public/util/experiments.h
+++ b/sync/internal_api/public/util/experiments.h
@@ -5,11 +5,16 @@
#ifndef SYNC_UTIL_EXPERIMENTS_
#define SYNC_UTIL_EXPERIMENTS_
+#include <string>
+
+#include "sync/internal_api/public/base/model_type.h"
+
namespace syncer {
const char kFaviconSyncTag[] = "favicon_sync";
const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance";
const char kGCMChannelTag[] = "gcm_channel";
+const char kEnhancedBookmarksTag[] = "enhanced_bookmarks";
// A structure to hold the enable status of experimental sync features.
struct Experiments {
@@ -19,12 +24,16 @@ struct Experiments {
ENABLED,
};
- Experiments() : favicon_sync_limit(200),
- gcm_channel_state(UNSET) {}
+ Experiments()
+ : favicon_sync_limit(200),
+ gcm_channel_state(UNSET),
+ enhanced_bookmarks_enabled(false) {}
bool Matches(const Experiments& rhs) {
return (favicon_sync_limit == rhs.favicon_sync_limit &&
- gcm_channel_state == rhs.gcm_channel_state);
+ gcm_channel_state == rhs.gcm_channel_state &&
+ enhanced_bookmarks_enabled == rhs.enhanced_bookmarks_enabled &&
+ enhanced_bookmarks_ext_id == rhs.enhanced_bookmarks_ext_id);
}
// The number of favicons that a client is permitted to sync.
@@ -32,6 +41,12 @@ struct Experiments {
// Enable state of the GCM channel.
GCMChannelState gcm_channel_state;
+
+ // Enable the enhanced bookmarks sync datatype.
+ bool enhanced_bookmarks_enabled;
+
+ // Enhanced bookmarks extension id.
+ std::string enhanced_bookmarks_ext_id;
};
} // namespace syncer