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

Unified Diff: chrome/browser/sync/engine/syncer.cc

Issue 7604019: [Sync] Add client-side plumbing for server control of sessions commit delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error and address comments Created 9 years, 4 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/engine/syncapi.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncer.cc
diff --git a/chrome/browser/sync/engine/syncer.cc b/chrome/browser/sync/engine/syncer.cc
index fae03fa1787d343373a5537f1a776b1352075129..236daf8700b6b0c94ce5f6d2b4c744f80596d8f2 100644
--- a/chrome/browser/sync/engine/syncer.cc
+++ b/chrome/browser/sync/engine/syncer.cc
@@ -312,6 +312,11 @@ void Syncer::ProcessClientCommand(sessions::SyncSession* session) {
session->delegate()->OnReceivedShortPollIntervalUpdate(
TimeDelta::FromSeconds(command.set_sync_poll_interval()));
}
+
+ if (command.has_sessions_commit_delay_seconds()) {
+ session->delegate()->OnReceivedSessionsCommitDelay(
+ TimeDelta::FromSeconds(command.sessions_commit_delay_seconds()));
+ }
}
void CopyServerFields(syncable::Entry* src, syncable::MutableEntry* dest) {
« no previous file with comments | « chrome/browser/sync/engine/syncapi.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698