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

Unified Diff: sync/sessions/sync_session_context.cc

Issue 19309002: sync: Add pre-commit update avoidance mode + flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
Index: sync/sessions/sync_session_context.cc
diff --git a/sync/sessions/sync_session_context.cc b/sync/sessions/sync_session_context.cc
index 9043db3cbae1ab6555b34e0aee2a38ce64429fd3..580db2b1d48fa4138e969fd97aedd28da3c05882 100644
--- a/sync/sessions/sync_session_context.cc
+++ b/sync/sessions/sync_session_context.cc
@@ -22,6 +22,7 @@ SyncSessionContext::SyncSessionContext(
DebugInfoGetter* debug_info_getter,
TrafficRecorder* traffic_recorder,
bool keystore_encryption_enabled,
+ bool force_enable_pre_commit_update_avoidance,
const std::string& invalidator_client_id)
: connection_manager_(connection_manager),
directory_(directory),
@@ -31,7 +32,10 @@ SyncSessionContext::SyncSessionContext(
debug_info_getter_(debug_info_getter),
traffic_recorder_(traffic_recorder),
keystore_encryption_enabled_(keystore_encryption_enabled),
- invalidator_client_id_(invalidator_client_id) {
+ invalidator_client_id_(invalidator_client_id),
+ pre_commit_update_avoidance_experiment_enabled_(false),
+ force_enable_pre_commit_update_avoidance_(
+ force_enable_pre_commit_update_avoidance) {
for (size_t i = 0u; i < workers.size(); ++i)
workers_.push_back(workers[i]);

Powered by Google App Engine
This is Rietveld 408576698