summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/util/experiments.h
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 09:58:38 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 09:58:38 +0000
commita5e9faaf382703cb684932ba31e475c327d6bde4 (patch)
tree9a872dcd9bf4fcd116b5fbc3cdf3613e97ba3f15 /sync/internal_api/public/util/experiments.h
parentb71dbb0a4d78f6c9ca6b70776a1e3aa324364252 (diff)
downloadchromium_src-a5e9faaf382703cb684932ba31e475c327d6bde4.zip
chromium_src-a5e9faaf382703cb684932ba31e475c327d6bde4.tar.gz
chromium_src-a5e9faaf382703cb684932ba31e475c327d6bde4.tar.bz2
[Sync] Add favicon sync experiment
The old tab sync favicon experiment is deprecated. This patch updates the strings to the fact that we now have a separate datatype, and hooks this up to a new sync field. BUG=154886 Review URL: https://chromiumcodereview.appspot.com/12700016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public/util/experiments.h')
-rw-r--r--sync/internal_api/public/util/experiments.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h
index c13e56a..7194ab3 100644
--- a/sync/internal_api/public/util/experiments.h
+++ b/sync/internal_api/public/util/experiments.h
@@ -14,25 +14,23 @@ const char kKeystoreEncryptionFlag[] = "sync-keystore-encryption";
const char kAutofillCullingTag[] = "autofill_culling";
const char kFullHistorySyncTag[] = "history_delete_directives";
const char kFullHistorySyncFlag[] = "full-history-sync";
+const char kFaviconSyncTag[] = "favicon_sync";
+const char kFaviconSyncFlag[] = "enable-sync-favicons";
// A structure to hold the enable status of experimental sync features.
struct Experiments {
- Experiments() : sync_tab_favicons(false),
- keystore_encryption(false),
+ Experiments() : keystore_encryption(false),
autofill_culling(false),
- full_history_sync(false) {}
+ full_history_sync(false),
+ favicon_sync(false) {}
bool Matches(const Experiments& rhs) {
- return (sync_tab_favicons == rhs.sync_tab_favicons &&
- keystore_encryption == rhs.keystore_encryption &&
+ return (keystore_encryption == rhs.keystore_encryption &&
autofill_culling == rhs.autofill_culling &&
- full_history_sync == rhs.full_history_sync);
+ full_history_sync == rhs.full_history_sync &&
+ favicon_sync == rhs.favicon_sync);
}
- // Enable syncing of favicons within tab sync (only has an effect if tab sync
- // is already enabled). This takes effect on the next restart.
- bool sync_tab_favicons;
-
// Enable keystore encryption logic and the new encryption UI.
bool keystore_encryption;
@@ -41,6 +39,9 @@ struct Experiments {
// Enable full history sync (and history delete directives) for this client.
bool full_history_sync;
+
+ // Enable the favicons sync datatypes (favicon images and favicon tracking).
+ bool favicon_sync;
};
} // namespace syncer