diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 01:51:51 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 01:51:51 +0000 |
commit | 29f5c603f2481aa9c09054b32b238bb0ff2f1b71 (patch) | |
tree | 1f856ee6e034a7117ebb223a5ffec612974dd3fc /sync/internal_api/public/util/experiments.h | |
parent | d5cc8698565b83d73f48113e0cc9b56089ba618b (diff) | |
download | chromium_src-29f5c603f2481aa9c09054b32b238bb0ff2f1b71.zip chromium_src-29f5c603f2481aa9c09054b32b238bb0ff2f1b71.tar.gz chromium_src-29f5c603f2481aa9c09054b32b238bb0ff2f1b71.tar.bz2 |
[Sync] Add full history sync experiment
Turning the experiment on will enable the full history sync flag, which both
updates the history UI to use full history, but also enables the history
delete directives sync datatype.
BUG=141245
Review URL: https://chromiumcodereview.appspot.com/12091081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public/util/experiments.h')
-rw-r--r-- | sync/internal_api/public/util/experiments.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h index 6e20a8e..c13e56a 100644 --- a/sync/internal_api/public/util/experiments.h +++ b/sync/internal_api/public/util/experiments.h @@ -12,17 +12,21 @@ namespace syncer { const char kKeystoreEncryptionTag[] = "keystore_encryption"; const char kKeystoreEncryptionFlag[] = "sync-keystore-encryption"; const char kAutofillCullingTag[] = "autofill_culling"; +const char kFullHistorySyncTag[] = "history_delete_directives"; +const char kFullHistorySyncFlag[] = "full-history-sync"; // A structure to hold the enable status of experimental sync features. struct Experiments { Experiments() : sync_tab_favicons(false), keystore_encryption(false), - autofill_culling(false) {} + autofill_culling(false), + full_history_sync(false) {} bool Matches(const Experiments& rhs) { return (sync_tab_favicons == rhs.sync_tab_favicons && keystore_encryption == rhs.keystore_encryption && - autofill_culling == rhs.autofill_culling); + autofill_culling == rhs.autofill_culling && + full_history_sync == rhs.full_history_sync); } // Enable syncing of favicons within tab sync (only has an effect if tab sync @@ -34,6 +38,9 @@ struct Experiments { // Enable deletion of expired autofill entries (if autofill sync is enabled). bool autofill_culling; + + // Enable full history sync (and history delete directives) for this client. + bool full_history_sync; }; } // namespace syncer |