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

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

Issue 14117004: [Sync] Add support for server-controlled favicon sync limit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add proto conversions Created 7 years, 8 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 | « chrome/browser/sync/glue/session_model_associator.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 7194ab334ed48b26104d0f6bf7b1382f21c1e22c..a3b874b00f426dfdb42def8c5b74cfe0ca0d6fca 100644
--- a/sync/internal_api/public/util/experiments.h
+++ b/sync/internal_api/public/util/experiments.h
@@ -22,13 +22,15 @@ struct Experiments {
Experiments() : keystore_encryption(false),
autofill_culling(false),
full_history_sync(false),
- favicon_sync(false) {}
+ favicon_sync(false),
+ favicon_sync_limit(200) {}
bool Matches(const Experiments& rhs) {
return (keystore_encryption == rhs.keystore_encryption &&
autofill_culling == rhs.autofill_culling &&
full_history_sync == rhs.full_history_sync &&
- favicon_sync == rhs.favicon_sync);
+ favicon_sync == rhs.favicon_sync &&
+ favicon_sync_limit == rhs.favicon_sync_limit);
}
// Enable keystore encryption logic and the new encryption UI.
@@ -42,6 +44,9 @@ struct Experiments {
// Enable the favicons sync datatypes (favicon images and favicon tracking).
bool favicon_sync;
+
+ // The number of favicons that a client is permitted to sync.
+ int favicon_sync_limit;
};
} // namespace syncer
« no previous file with comments | « chrome/browser/sync/glue/session_model_associator.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698