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

Issue 2533083002: [Sync] SyncEngine refactor part 1: interfaces. (Closed)

Created:
4 years ago by maxbogue
Modified:
4 years ago
Reviewers:
Scott Byer, raymes, skym, jwd
CC:
asvitkine+watch_chromium.org, chromium-reviews, mlamouri+watch-permissions_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] SyncEngine refactor part 1: interfaces. - SyncBackendHost -> SyncEngine - SyncFrontend -> SyncEngineHost - BackendDataTypeConfigurer -> ModelTypeConfigurer - SyncBackendHostMock -> FakeSyncEngine Note that this CL intentionally does not update variable and method names inside ProfileSyncService because there are so many that I'm making it a separate CL. BUG=669967 Committed: https://crrev.com/6dcda76d27564c8a9d854803762fa64bf62c670e Cr-Commit-Position: refs/heads/master@{#436396}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 49

Patch Set 3 : Actually remove sync_backend_host_mock.cc #

Patch Set 4 : Address comments. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+635 lines, -1301 lines) Patch
M chrome/browser/permissions/permission_uma_util_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_error_notifier_ash_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_global_error_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_ui_util_unittest.cc View 11 chunks +11 lines, -11 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_proxy_backend.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/browser_sync/abstract_profile_sync_service_test.cc View 1 7 chunks +19 lines, -19 lines 0 comments Download
M components/browser_sync/profile_sync_components_factory_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/browser_sync/profile_sync_components_factory_impl.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M components/browser_sync/profile_sync_service.h View 1 2 3 4 7 chunks +8 lines, -8 lines 0 comments Download
M components/browser_sync/profile_sync_service.cc View 1 2 3 4 9 chunks +17 lines, -20 lines 0 comments Download
M components/browser_sync/profile_sync_service_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M components/browser_sync/profile_sync_service_startup_unittest.cc View 13 chunks +15 lines, -15 lines 0 comments Download
M components/browser_sync/profile_sync_service_unittest.cc View 1 33 chunks +57 lines, -57 lines 0 comments Download
M components/sync/BUILD.gn View 1 6 chunks +8 lines, -8 lines 0 comments Download
D components/sync/driver/backend_data_type_configurer.h View 1 chunk +0 lines, -96 lines 0 comments Download
D components/sync/driver/backend_data_type_configurer.cc View 1 chunk +0 lines, -32 lines 0 comments Download
M components/sync/driver/data_type_controller.h View 3 chunks +4 lines, -4 lines 0 comments Download
M components/sync/driver/data_type_manager_impl.h View 4 chunks +4 lines, -4 lines 0 comments Download
M components/sync/driver/data_type_manager_impl.cc View 3 chunks +17 lines, -19 lines 0 comments Download
M components/sync/driver/data_type_manager_impl_unittest.cc View 19 chunks +31 lines, -32 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M components/sync/driver/fake_data_type_controller.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync/driver/fake_data_type_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync/driver/generic_change_processor_unittest.cc View 1 chunk +5 lines, -6 lines 0 comments Download
D components/sync/driver/glue/sync_backend_host.h View 1 1 chunk +0 lines, -207 lines 0 comments Download
D components/sync/driver/glue/sync_backend_host.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.h View 1 2 3 5 chunks +10 lines, -11 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.h View 1 2 3 8 chunks +17 lines, -21 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.cc View 1 2 3 15 chunks +38 lines, -40 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl_unittest.cc View 1 26 chunks +43 lines, -47 lines 0 comments Download
D components/sync/driver/glue/sync_backend_host_mock.h View 1 1 chunk +0 lines, -121 lines 0 comments Download
D components/sync/driver/glue/sync_backend_host_mock.cc View 1 2 1 chunk +0 lines, -140 lines 0 comments Download
M components/sync/driver/model_association_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/driver/model_type_controller.h View 1 chunk +3 lines, -3 lines 0 comments Download
M components/sync/driver/model_type_controller.cc View 1 4 chunks +4 lines, -7 lines 0 comments Download
M components/sync/driver/model_type_controller_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.h View 1 chunk +3 lines, -3 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/driver/shared_change_processor_unittest.cc View 8 chunks +20 lines, -21 lines 0 comments Download
M components/sync/driver/startup_controller.h View 4 chunks +13 lines, -14 lines 0 comments Download
M components/sync/driver/startup_controller.cc View 9 chunks +16 lines, -16 lines 0 comments Download
M components/sync/driver/startup_controller_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/sync/driver/sync_api_component_factory.h View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M components/sync/driver/sync_api_component_factory_mock.h View 1 chunk +6 lines, -6 lines 0 comments Download
D components/sync/driver/sync_frontend.h View 1 chunk +0 lines, -144 lines 0 comments Download
D components/sync/driver/sync_frontend.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M components/sync/driver/sync_service.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
A + components/sync/engine/fake_sync_engine.h View 1 3 chunks +10 lines, -10 lines 0 comments Download
A components/sync/engine/fake_sync_engine.cc View 1 1 chunk +136 lines, -0 lines 0 comments Download
A + components/sync/engine/model_type_configurer.h View 4 chunks +9 lines, -10 lines 0 comments Download
A + components/sync/engine/model_type_configurer.cc View 2 chunks +5 lines, -6 lines 0 comments Download
A + components/sync/engine/sync_engine.h View 1 2 3 9 chunks +36 lines, -40 lines 0 comments Download
A + components/sync/engine/sync_engine.cc View 1 chunk +3 lines, -4 lines 0 comments Download
A + components/sync/engine/sync_engine_host.h View 1 2 3 6 chunks +14 lines, -17 lines 0 comments Download
A + components/sync/engine/sync_engine_host.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M components/sync/syncable/test_user_share.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (28 generated)
maxbogue
Sky, PTAL!
4 years ago (2016-12-02 19:40:13 UTC) #9
skym
As we talked about offline, the deletion of sync_backend_host_mock.cc needs to added. Pretty much just ...
4 years ago (2016-12-02 20:54:55 UTC) #14
maxbogue
https://codereview.chromium.org/2533083002/diff/20001/components/browser_sync/profile_sync_service.cc File components/browser_sync/profile_sync_service.cc (right): https://codereview.chromium.org/2533083002/diff/20001/components/browser_sync/profile_sync_service.cc#newcode832 components/browser_sync/profile_sync_service.cc:832: // into ShutdownImpl or SyncEngine itself. On 2016/12/02 20:54:54, ...
4 years ago (2016-12-02 23:59:28 UTC) #18
maxbogue
https://codereview.chromium.org/2533083002/diff/20001/components/browser_sync/profile_sync_service.cc File components/browser_sync/profile_sync_service.cc (right): https://codereview.chromium.org/2533083002/diff/20001/components/browser_sync/profile_sync_service.cc#newcode832 components/browser_sync/profile_sync_service.cc:832: // into ShutdownImpl or SyncEngine itself. On 2016/12/02 20:54:54, ...
4 years ago (2016-12-02 23:59:29 UTC) #19
skym
lgtm https://codereview.chromium.org/2533083002/diff/20001/components/browser_sync/profile_sync_service.h File components/browser_sync/profile_sync_service.h (right): https://codereview.chromium.org/2533083002/diff/20001/components/browser_sync/profile_sync_service.h#newcode842 components/browser_sync/profile_sync_service.h:842: bool backend_initialized_; On 2016/12/02 23:59:27, maxbogue wrote: > ...
4 years ago (2016-12-03 00:03:47 UTC) #21
maxbogue
Adding reviewers for non-sync files: raymes: chrome/browser/permissions/permission_uma_util_unittest.cc jwd: tools/metrics/histograms/histograms.xml scottbyer: chrome/service/cloud_print/cloud_print_proxy_backend.h
4 years ago (2016-12-03 00:04:14 UTC) #25
raymes
lgtm
4 years ago (2016-12-05 01:51:16 UTC) #30
Scott Byer
lgtm
4 years ago (2016-12-05 18:51:29 UTC) #31
jwd
histograms lgtm
4 years ago (2016-12-05 18:57:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2533083002/80001
4 years ago (2016-12-05 18:57:47 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-05 20:46:30 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-05 20:49:56 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6dcda76d27564c8a9d854803762fa64bf62c670e
Cr-Commit-Position: refs/heads/master@{#436396}

Powered by Google App Engine
This is Rietveld 408576698