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

Issue 38803003: sync: Implement per-type update processing (Closed)

Created:
7 years, 2 months ago by rlarocque
Modified:
7 years, 1 month ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Visibility:
Public.

Description

sync: Implement per-type update processing Introduces a new class that represents a syncable::Directory's udpate requesting and processing capabilities. The intention is that this will eventually be expanded to cover commits as well. Eventually, this will be used as the basis for an interface between sync and Some update logic has been moved into this SyncDirectoryUpdateHandler class or download.cc. The rest of it can be found in process_update_util.cc, the successor to the old ProcessUpdatesCommand. The StoreTimestampsCommand has been entirely removed. The unit tests associated with these SyncerCommands have been ported to sync_directory_update_handler_unittest.cc. Except for a few error scenarios that are now handled differently, the observable behavior of the client should not be changed by this CL. BUG=278484 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231878

Patch Set 1 #

Patch Set 2 : Clean up and add comments #

Total comments: 1

Patch Set 3 : Fix integration tests #

Total comments: 30

Patch Set 4 : Address most review comments #

Patch Set 5 : Fix progress marker fetching #

Total comments: 4

Patch Set 6 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -904 lines) Patch
M sync/engine/download.h View 1 chunk +2 lines, -1 line 0 comments Download
M sync/engine/download.cc View 1 2 3 4 5 9 chunks +120 lines, -32 lines 0 comments Download
D sync/engine/process_updates_command.h View 1 chunk +0 lines, -67 lines 0 comments Download
D sync/engine/process_updates_command.cc View 1 chunk +0 lines, -348 lines 0 comments Download
D sync/engine/process_updates_command_unittest.cc View 1 chunk +0 lines, -173 lines 0 comments Download
A sync/engine/process_updates_util.h View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A + sync/engine/process_updates_util.cc View 1 2 3 6 chunks +44 lines, -63 lines 0 comments Download
D sync/engine/store_timestamps_command.h View 1 chunk +0 lines, -56 lines 0 comments Download
D sync/engine/store_timestamps_command.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D sync/engine/store_timestamps_command_unittest.cc View 1 chunk +0 lines, -83 lines 0 comments Download
A sync/engine/sync_directory_update_handler.h View 1 2 3 1 chunk +82 lines, -0 lines 0 comments Download
A sync/engine/sync_directory_update_handler.cc View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A sync/engine/sync_directory_update_handler_unittest.cc View 1 2 3 1 chunk +211 lines, -0 lines 0 comments Download
M sync/engine/syncer.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/engine/syncer.cc View 4 chunks +6 lines, -1 line 0 comments Download
M sync/engine/syncer_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/sessions/sync_session_context.h View 1 2 3 4 5 3 chunks +13 lines, -0 lines 0 comments Download
M sync/sessions/sync_session_context.cc View 2 chunks +11 lines, -2 lines 0 comments Download
M sync/sync_core.gypi View 2 chunks +4 lines, -4 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -2 lines 0 comments Download
M sync/test/engine/mock_connection_manager.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M sync/tools/testserver/chromiumsync.py View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rlarocque
Please review. This should look similar to the per-type commit CL I committed recently (r228810). ...
7 years, 2 months ago (2013-10-24 20:47:27 UTC) #1
Nicolas Zea
https://codereview.chromium.org/38803003/diff/120001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/38803003/diff/120001/sync/engine/download.cc#newcode151 sync/engine/download.cc:151: DLOG(WARNING) << "Unknown field number " << field_number; do ...
7 years, 1 month ago (2013-10-25 21:04:41 UTC) #2
rlarocque
I've uploaded a new match that addresses most of your comments. PTAL. https://codereview.chromium.org/38803003/diff/120001/sync/engine/download.cc File sync/engine/download.cc ...
7 years, 1 month ago (2013-10-25 22:29:46 UTC) #3
rlarocque
While working on the next patch in the series, I noticed an oversight in this ...
7 years, 1 month ago (2013-10-28 23:12:11 UTC) #4
Nicolas Zea
LGTM https://codereview.chromium.org/38803003/diff/290001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/38803003/diff/290001/sync/engine/download.cc#newcode133 sync/engine/download.cc:133: UpdateHandlerMap::iterator handler_it = handler_map->find(it.Get()); DCHECK that handler_it != ...
7 years, 1 month ago (2013-10-29 22:50:17 UTC) #5
rlarocque
https://codereview.chromium.org/38803003/diff/290001/sync/engine/download.cc File sync/engine/download.cc (right): https://codereview.chromium.org/38803003/diff/290001/sync/engine/download.cc#newcode133 sync/engine/download.cc:133: UpdateHandlerMap::iterator handler_it = handler_map->find(it.Get()); On 2013/10/29 22:50:18, Nicolas Zea ...
7 years, 1 month ago (2013-10-30 00:32:21 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/38803003/460001
7 years, 1 month ago (2013-10-30 16:48:55 UTC) #7
commit-bot: I haz the power
7 years, 1 month ago (2013-10-30 18:21:20 UTC) #8
Message was sent while issue was closed.
Change committed as 231878

Powered by Google App Engine
This is Rietveld 408576698