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

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

Issue 7477004: Simulate transient error and verify exponential backoff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. 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
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..49928598af092c0531b0de3add464b8a767b0463 100644
--- a/chrome/browser/sync/engine/syncer.cc
+++ b/chrome/browser/sync/engine/syncer.cc
@@ -112,6 +112,11 @@ void Syncer::SyncShare(sessions::SyncSession* session,
}
case DOWNLOAD_UPDATES: {
VLOG(1) << "Downloading Updates";
+
+ // We would call set_syncing(false) at the SYNCER_END step. Note if
+ // we are on DOWNLOAD_UPDATES state we would not exit without
+ // going to SYNCER_END because of various cleanup steps.
+ session->status_controller()->set_syncing(true);
tim (not reviewing) 2011/08/09 19:57:47 Why are we making this change? What do you mean b
lipalani1 2011/08/09 20:36:48 hey even in that case we would always call syncer_
DownloadUpdatesCommand download_updates;
download_updates.Execute(session);
next_step = PROCESS_CLIENT_COMMAND;
@@ -168,8 +173,6 @@ void Syncer::SyncShare(sessions::SyncSession* session,
// These two steps are combined since they are executed within the same
// write transaction.
case BUILD_COMMIT_REQUEST: {
- session->status_controller()->set_syncing(true);
-
VLOG(1) << "Processing Commit Request";
ScopedDirLookup dir(session->context()->directory_manager(),
session->context()->account_name());

Powered by Google App Engine
This is Rietveld 408576698