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

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: Fix nits 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
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c48c32b31ee9f8c21d32ee9d498e1cce54d48d2a 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 client_enabled_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),
+ server_enabled_pre_commit_update_avoidance_(false),
+ client_enabled_pre_commit_update_avoidance_(
+ client_enabled_pre_commit_update_avoidance) {
for (size_t i = 0u; i < workers.size(); ++i)
workers_.push_back(workers[i]);
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698