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

Issue 11091009: sync: Merge {Verify,Process}UpdatesCommand (Closed)

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

Description

sync: Merge {Verify,Process}UpdatesCommand The VerifyUpdatesCommand was used to ensure the validity of each update that had been delivered from the server and to prepare for the ProcessUpdatesCommand. The ProcessUpdatesCommand would then take all updates that had been successfully verified and move them into the SERVER_ fields of the sync directory. It turns out that the logic can be greatly simplified by performing both tasks within the same command. This patch does not take full advantage of the merge. This patch is intended simply to merge the two files, with the goal of performing more significant refactorings later. BUG=154654 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162176

Patch Set 1 #

Patch Set 2 : Remove more #

Total comments: 2

Patch Set 3 : Minor fixes #

Total comments: 2

Patch Set 4 : Add comment #

Total comments: 1

Patch Set 5 : Amend comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -436 lines) Patch
M sync/engine/process_updates_command.h View 2 chunks +7 lines, -4 lines 0 comments Download
M sync/engine/process_updates_command.cc View 1 2 3 4 2 chunks +189 lines, -25 lines 0 comments Download
M sync/engine/process_updates_command_unittest.cc View 3 chunks +55 lines, -7 lines 0 comments Download
M sync/engine/syncer.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/syncer.cc View 1 2 3 3 chunks +0 lines, -8 lines 0 comments Download
D sync/engine/verify_updates_command.h View 1 chunk +0 lines, -48 lines 0 comments Download
D sync/engine/verify_updates_command.cc View 1 chunk +0 lines, -210 lines 0 comments Download
D sync/engine/verify_updates_command_unittest.cc View 1 chunk +0 lines, -109 lines 0 comments Download
M sync/sessions/sync_session.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 1 chunk +0 lines, -18 lines 0 comments Download
M sync/sync.gyp View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rlarocque
Here's the patch to merge Verify and Process updates commands. This is a detour on ...
8 years, 2 months ago (2012-10-08 23:16:40 UTC) #1
rlarocque
On 2012/10/08 23:16:40, rlarocque wrote: > Here's the patch to merge Verify and Process updates ...
8 years, 2 months ago (2012-10-12 17:08:55 UTC) #2
tim (not reviewing)
LGTM with one comment http://codereview.chromium.org/11091009/diff/5001/sync/engine/process_updates_command.cc File sync/engine/process_updates_command.cc (right): http://codereview.chromium.org/11091009/diff/5001/sync/engine/process_updates_command.cc#newcode125 sync/engine/process_updates_command.cc:125: if (g != status->group_restriction()) Add ...
8 years, 2 months ago (2012-10-15 21:06:52 UTC) #3
rlarocque
Patch updated. Let me know if you see any problems with the wording of the ...
8 years, 2 months ago (2012-10-15 22:47:32 UTC) #4
tim (not reviewing)
http://codereview.chromium.org/11091009/diff/11001/sync/engine/process_updates_command.cc File sync/engine/process_updates_command.cc (right): http://codereview.chromium.org/11091009/diff/11001/sync/engine/process_updates_command.cc#newcode134 sync/engine/process_updates_command.cc:134: // TODO(tim): Hide these details. See crbug.com/121521 . "Don't ...
8 years, 2 months ago (2012-10-15 23:22:32 UTC) #5
rlarocque
On 2012/10/15 23:22:32, timsteele wrote: > http://codereview.chromium.org/11091009/diff/11001/sync/engine/process_updates_command.cc > File sync/engine/process_updates_command.cc (right): > > http://codereview.chromium.org/11091009/diff/11001/sync/engine/process_updates_command.cc#newcode134 > ...
8 years, 2 months ago (2012-10-16 00:08:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/11091009/9002
8 years, 2 months ago (2012-10-16 17:12:12 UTC) #7
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 18:14:46 UTC) #8
Change committed as 162176

Powered by Google App Engine
This is Rietveld 408576698