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

Unified Diff: sync/test/engine/mock_connection_manager.cc

Issue 10107004: Revert 132455 - Abort sync cycles when download step fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/test/engine/mock_connection_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_connection_manager.cc
===================================================================
--- sync/test/engine/mock_connection_manager.cc (revision 132475)
+++ sync/test/engine/mock_connection_manager.cc (working copy)
@@ -48,7 +48,7 @@
store_birthday_sent_(false),
client_stuck_(false),
commit_time_rename_prepended_string_(""),
- countdown_to_postbuffer_fail_(0),
+ fail_next_postbuffer_(false),
directory_(directory),
mid_commit_observer_(NULL),
throttling_(false),
@@ -111,9 +111,8 @@
InvalidateAndClearAuthToken();
}
- if (--countdown_to_postbuffer_fail_ == 0) {
- // Fail as countdown hits zero.
- params->response.server_status = HttpResponse::SYNC_SERVER_ERROR;
+ if (fail_next_postbuffer_) {
+ fail_next_postbuffer_ = false;
return false;
}
« no previous file with comments | « sync/test/engine/mock_connection_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698