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

Issue 161253002: sync: Add interfaces for per-type sync (Closed)

Created:
6 years, 10 months ago by rlarocque
Modified:
6 years, 10 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Add interfaces for per-type sync Puts the DirectoryCommitContributor and DirectoryUpdateHandler classes behind interfaces. These classes were always intended to form the basis of an abstract interface. Now we can start to introduce alternate implementations of them. This CL includes one such alternate implementation. It adds the MockUpdateHandler and uses it to remove some unnecessary boilerplate from the download unit tests. This CL also resolves an old TODO. It renames the SyncDirectory* classes to Directory*, since the 'Sync' part of the name is redundant. This should have no effect on program behavior. BUG=278484 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251969

Patch Set 1 #

Patch Set 2 : Minor fix #

Total comments: 18

Patch Set 3 : Rebase #

Patch Set 4 : Review fixes #

Patch Set 5 : Fix typo #

Patch Set 6 : Attempt to fix win compile #

Patch Set 7 : Another win compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -1860 lines) Patch
M sync/engine/commit.h View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/engine/commit.cc View 4 chunks +4 lines, -4 lines 0 comments Download
A sync/engine/commit_contribution.h View 1 chunk +54 lines, -0 lines 0 comments Download
A + sync/engine/commit_contribution.cc View 1 chunk +4 lines, -3 lines 0 comments Download
A sync/engine/commit_contributor.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A + sync/engine/commit_contributor.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M sync/engine/commit_processor.h View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M sync/engine/commit_processor.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + sync/engine/directory_commit_contribution.h View 1 2 3 4 5 6 chunks +19 lines, -16 lines 0 comments Download
A + sync/engine/directory_commit_contribution.cc View 1 2 3 7 chunks +12 lines, -11 lines 0 comments Download
A + sync/engine/directory_commit_contribution_unittest.cc View 10 chunks +21 lines, -21 lines 0 comments Download
A + sync/engine/directory_commit_contributor.h View 1 2 3 4 5 2 chunks +14 lines, -10 lines 0 comments Download
A sync/engine/directory_commit_contributor.cc View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A + sync/engine/directory_update_handler.h View 1 2 3 4 5 5 chunks +18 lines, -17 lines 0 comments Download
A + sync/engine/directory_update_handler.cc View 8 chunks +12 lines, -13 lines 0 comments Download
A + sync/engine/directory_update_handler_unittest.cc View 24 chunks +36 lines, -36 lines 0 comments Download
M sync/engine/download_unittest.cc View 3 chunks +7 lines, -25 lines 0 comments Download
M sync/engine/get_updates_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/get_updates_processor.h View 1 chunk +0 lines, -4 lines 0 comments Download
M sync/engine/get_updates_processor.cc View 1 chunk +4 lines, -1 line 0 comments Download
D sync/engine/sync_directory_commit_contribution.h View 1 chunk +0 lines, -102 lines 0 comments Download
D sync/engine/sync_directory_commit_contribution.cc View 1 chunk +0 lines, -164 lines 0 comments Download
D sync/engine/sync_directory_commit_contribution_unittest.cc View 1 chunk +0 lines, -235 lines 0 comments Download
D sync/engine/sync_directory_commit_contributor.h View 1 chunk +0 lines, -41 lines 0 comments Download
D sync/engine/sync_directory_commit_contributor.cc View 1 chunk +0 lines, -24 lines 0 comments Download
D sync/engine/sync_directory_update_handler.h View 1 chunk +0 lines, -101 lines 0 comments Download
D sync/engine/sync_directory_update_handler.cc View 1 chunk +0 lines, -164 lines 0 comments Download
D sync/engine/sync_directory_update_handler_unittest.cc View 1 chunk +0 lines, -828 lines 0 comments Download
A sync/engine/update_handler.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A + sync/engine/update_handler.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M sync/sessions/model_type_registry.h View 1 chunk +4 lines, -5 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M sync/sync_core.gypi View 4 chunks +16 lines, -10 lines 0 comments Download
M sync/sync_tests.gypi View 2 chunks +4 lines, -2 lines 0 comments Download
A sync/test/engine/mock_update_handler.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A sync/test/engine/mock_update_handler.cc View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rlarocque
Here's the long-awaited per-type sync interface. Since this CL necessarily had to include lots of ...
6 years, 10 months ago (2014-02-12 21:15:20 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/161253002/diff/40001/sync/engine/commit_contributor.h File sync/engine/commit_contributor.h (right): https://codereview.chromium.org/161253002/diff/40001/sync/engine/commit_contributor.h#newcode27 sync/engine/commit_contributor.h:27: virtual CommitContribution* GetContribution(size_t max_entries) = 0; Even though these ...
6 years, 10 months ago (2014-02-18 19:15:01 UTC) #2
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/161253002/diff/40001/sync/engine/commit_contributor.h File sync/engine/commit_contributor.h (right): https://codereview.chromium.org/161253002/diff/40001/sync/engine/commit_contributor.h#newcode27 sync/engine/commit_contributor.h:27: virtual CommitContribution* GetContribution(size_t max_entries) = 0; ...
6 years, 10 months ago (2014-02-18 20:01:13 UTC) #3
tim (not reviewing)
LGTM
6 years, 10 months ago (2014-02-18 20:41:39 UTC) #4
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 10 months ago (2014-02-18 20:42:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/161253002/400001
6 years, 10 months ago (2014-02-18 20:44:44 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-18 21:25:14 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 10 months ago (2014-02-18 21:25:15 UTC) #8
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 10 months ago (2014-02-18 23:24:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/161253002/620001
6 years, 10 months ago (2014-02-18 23:25:15 UTC) #10
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 10 months ago (2014-02-19 00:53:53 UTC) #11
commit-bot: I haz the power
Failed to trigger a try job on win HTTP Error 400: Bad Request
6 years, 10 months ago (2014-02-19 00:55:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/161253002/190003
6 years, 10 months ago (2014-02-19 00:55:11 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 02:03:13 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=266097
6 years, 10 months ago (2014-02-19 02:03:13 UTC) #15
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 10 months ago (2014-02-19 02:06:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/161253002/190003
6 years, 10 months ago (2014-02-19 02:09:46 UTC) #17
commit-bot: I haz the power
6 years, 10 months ago (2014-02-19 06:28:18 UTC) #18
Message was sent while issue was closed.
Change committed as 251969

Powered by Google App Engine
This is Rietveld 408576698