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

Issue 10523003: Refactor following sync commit loop change (Closed)

Created:
8 years, 6 months ago by rlarocque
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

Refactor following sync commit loop change This change includes some cleanups of the code introduced in r139519. They have been kept separate from that CL in the hopes of making both CLs easiser to read. This commit moves some error-detection functionality from ProcessCommitResponse's ModelNeutralExecuteImpl() into BuildAndPostCommits(). This simplifies some of the error handling and allows us to remove ModelChangingSyncerCommand's ModelNeutralExecuteImpl(). This CL also combines both commit error indicators into a single variable. BUG=91696, 36594 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141321

Patch Set 1 #

Patch Set 2 : Minor fixes #

Total comments: 7

Patch Set 3 : Review fixes #

Patch Set 4 : Alternate SYNCING bits clear #

Total comments: 7

Patch Set 5 : More fixes #

Patch Set 6 : Rebase #

Patch Set 7 : Another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -149 lines) Patch
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 2 3 4 5 6 1 chunk +3 lines, -7 lines 0 comments Download
M sync/engine/build_commit_command.cc View 1 chunk +1 line, -4 lines 0 comments Download
M sync/engine/commit.cc View 1 2 3 4 2 chunks +76 lines, -23 lines 0 comments Download
M sync/engine/model_changing_syncer_command.h View 1 2 3 4 5 6 1 chunk +0 lines, -8 lines 0 comments Download
M sync/engine/model_changing_syncer_command.cc View 2 chunks +1 line, -9 lines 0 comments Download
M sync/engine/process_commit_response_command.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sync/engine/process_commit_response_command.cc View 2 chunks +0 lines, -45 lines 0 comments Download
M sync/engine/syncer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M sync/internal_api/public/sessions/error_counters.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M sync/internal_api/public/sessions/error_counters.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M sync/sessions/status_controller.h View 2 chunks +1 line, -5 lines 0 comments Download
M sync/sessions/status_controller.cc View 1 2 3 4 5 6 1 chunk +2 lines, -15 lines 0 comments Download
M sync/sessions/status_controller_unittest.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 2 3 4 5 6 2 chunks +3 lines, -9 lines 0 comments Download
M sync/sessions/test_util.cc View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rlarocque
Here are a few refactorings. Most of these were discussed during http://codereview.chromium.org/10210009/.
8 years, 6 months ago (2012-06-05 17:23:24 UTC) #1
tim (not reviewing)
Nice change. http://codereview.chromium.org/10523003/diff/2001/sync/engine/commit.cc File sync/engine/commit.cc (right): http://codereview.chromium.org/10523003/diff/2001/sync/engine/commit.cc#newcode108 sync/engine/commit.cc:108: ClearSyncingBits(session->context()->directory(), commit_set); Now that you've grouped everything ...
8 years, 6 months ago (2012-06-05 19:18:25 UTC) #2
rlarocque
Fixed a few things. If you'd like, we can talk in person about the function ...
8 years, 6 months ago (2012-06-05 20:51:14 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/10523003/diff/2001/sync/engine/commit.cc File sync/engine/commit.cc (right): http://codereview.chromium.org/10523003/diff/2001/sync/engine/commit.cc#newcode108 sync/engine/commit.cc:108: ClearSyncingBits(session->context()->directory(), commit_set); On 2012/06/05 20:51:14, rlarocque wrote: > On ...
8 years, 6 months ago (2012-06-05 21:16:46 UTC) #4
rlarocque
Alternative for clearing SYNCING bits uploaded. Note that this new version introduces a little bit ...
8 years, 6 months ago (2012-06-05 23:35:14 UTC) #5
tim (not reviewing)
couple nits, then LGTM http://codereview.chromium.org/10523003/diff/8003/sync/engine/commit.cc File sync/engine/commit.cc (right): http://codereview.chromium.org/10523003/diff/8003/sync/engine/commit.cc#newcode26 sync/engine/commit.cc:26: bool value) { nit - ...
8 years, 6 months ago (2012-06-06 00:41:46 UTC) #6
rlarocque
http://codereview.chromium.org/10523003/diff/8003/sync/engine/commit.cc File sync/engine/commit.cc (right): http://codereview.chromium.org/10523003/diff/8003/sync/engine/commit.cc#newcode26 sync/engine/commit.cc:26: bool value) { On 2012/06/06 00:41:46, timsteele wrote: > ...
8 years, 6 months ago (2012-06-06 01:01:09 UTC) #7
tim (not reviewing)
LGTM http://codereview.chromium.org/10523003/diff/8003/sync/engine/commit.cc File sync/engine/commit.cc (right): http://codereview.chromium.org/10523003/diff/8003/sync/engine/commit.cc#newcode44 sync/engine/commit.cc:44: void ClearSyncingBits(syncable::Directory* dir, On 2012/06/06 01:01:09, rlarocque wrote: ...
8 years, 6 months ago (2012-06-08 22:30:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10523003/7003
8 years, 6 months ago (2012-06-08 22:32:14 UTC) #9
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 23:25:23 UTC) #10
Change committed as 141321

Powered by Google App Engine
This is Rietveld 408576698