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

Issue 10537032: [Sync] Fix sync scheduler/session logic determining successful commands. (Closed)

Created:
8 years, 6 months ago by Nicolas Zea
Modified:
8 years, 6 months ago
Reviewers:
rlarocque
CC:
chromium-reviews
Visibility:
Public.

Description

[Sync] Fix sync scheduler/session logic determining successful commands. We now have Succeeded(), which is true iff the command ran successfully, and SuccessfullyReachedServer(), which is true iff we actually contacted the server without errors. BUG=131414 TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140885

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Self review #

Total comments: 2

Patch Set 4 : Rename method #

Total comments: 8

Patch Set 5 : Address comments #

Patch Set 6 : Add test #

Patch Set 7 : Remove comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -29 lines) Patch
M sync/engine/sync_scheduler.cc View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 5 9 chunks +31 lines, -8 lines 0 comments Download
M sync/engine/syncer.cc View 1 chunk +3 lines, -1 line 0 comments Download
M sync/sessions/sync_session.h View 1 2 3 4 5 6 4 chunks +12 lines, -1 line 0 comments Download
M sync/sessions/sync_session.cc View 1 2 3 4 3 chunks +34 lines, -12 lines 0 comments Download
M sync/sessions/test_util.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Nicolas Zea
PTAL, this is what we discussed yesterday.
8 years, 6 months ago (2012-06-06 19:13:37 UTC) #1
rlarocque
IIRC, the Succeeded() flag was only used in two places: - FinishSyncSessionJob(), which you modified. ...
8 years, 6 months ago (2012-06-06 19:32:32 UTC) #2
Nicolas Zea
Discussed higher level comments offline. PTAL https://chromiumcodereview.appspot.com/10537032/diff/1008/sync/sessions/sync_session.h File sync/sessions/sync_session.h (right): https://chromiumcodereview.appspot.com/10537032/diff/1008/sync/sessions/sync_session.h#newcode135 sync/sessions/sync_session.h:135: bool SuccessfullyReachServer() const; ...
8 years, 6 months ago (2012-06-06 20:36:15 UTC) #3
rlarocque
One more comment. I missed this on the first pass. https://chromiumcodereview.appspot.com/10537032/diff/6001/sync/sessions/sync_session.h File sync/sessions/sync_session.h (right): https://chromiumcodereview.appspot.com/10537032/diff/6001/sync/sessions/sync_session.h#newcode226 ...
8 years, 6 months ago (2012-06-06 20:51:22 UTC) #4
rlarocque
More comments. https://chromiumcodereview.appspot.com/10537032/diff/6001/sync/sessions/sync_session.cc File sync/sessions/sync_session.cc (right): https://chromiumcodereview.appspot.com/10537032/diff/6001/sync/sessions/sync_session.cc#newcode253 sync/sessions/sync_session.cc:253: bool reach_server = false; Rather than use ...
8 years, 6 months ago (2012-06-06 21:12:05 UTC) #5
Nicolas Zea
PTAL. Also added a test for the case I missed/you caught. https://chromiumcodereview.appspot.com/10537032/diff/6001/sync/sessions/sync_session.cc File sync/sessions/sync_session.cc (right): ...
8 years, 6 months ago (2012-06-06 21:27:54 UTC) #6
rlarocque
Issue about the comment resolved offline. LGTM once the comment is removed.
8 years, 6 months ago (2012-06-06 21:53:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10537032/14002
8 years, 6 months ago (2012-06-06 21:54:35 UTC) #8
commit-bot: I haz the power
8 years, 6 months ago (2012-06-06 23:36:57 UTC) #9
Change committed as 140885

Powered by Google App Engine
This is Rietveld 408576698