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

Unified Diff: sync/engine/syncer.cc

Issue 10537032: [Sync] Fix sync scheduler/session logic determining successful commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename method Created 8 years, 6 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/engine/syncer.cc
diff --git a/sync/engine/syncer.cc b/sync/engine/syncer.cc
index ac6b5eb787e354f94b2d5daab3f6ae9c1b631088..f8639c0f47be6da50db9dd65e9510e393c42ef1e 100644
--- a/sync/engine/syncer.cc
+++ b/sync/engine/syncer.cc
@@ -241,8 +241,10 @@ void Syncer::SyncShare(sessions::SyncSession* session,
<< "current step: " << SyncerStepToString(current_step) << ", "
<< "next step: " << SyncerStepToString(next_step) << ", "
<< "snapshot: " << session->TakeSnapshot().ToString();
- if (last_step == current_step)
+ if (last_step == current_step) {
+ session->SetFinished();
break;
+ }
current_step = next_step;
}
}

Powered by Google App Engine
This is Rietveld 408576698