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

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed)

Created:
6 years, 6 months ago by rlarocque
Modified:
6 years, 6 months ago
Reviewers:
stanisc, Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

sync: Mass rename of non-blocking sync classes Renames many of the classes involved in non-blocking sync: - Renames SyncCore, SyncCoreProxy to SyncContext and SyncContextProxy. - Renames NonBlockingTypeProcessor and NonBlockingTypeProcessorInterface to ModelTypeSyncProxyImpl and ModelTypeSyncProxy, respectively. - Renames NonBlockingTypeProcessorCore and NonBlockingTypeProcessorCoreInterface to ModelTypeSyncWorkerImpl and ModelTypeSyncWorker, respectively. - Renames ModelThreadSyncEntity to ModelTypeEntity. - Renames SyncThreadSyncEntity to EntityTracker. Renames any Mock, Test, Wrapper, or Impl classes associated with the above, too. This is only the first part of the planned refactoring. The second part, which involves some changes to the inheritance hierarchy, will be implemented in a future CL. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279618

Patch Set 1 #

Patch Set 2 : Small fixes #

Total comments: 20

Patch Set 3 : Fix some comments #

Total comments: 8

Patch Set 4 : Responses to Stanislav's comments #

Patch Set 5 : const ref some smart pointers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1516 lines, -5417 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.h View 1 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 3 chunks +6 lines, -8 lines 0 comments Download
M components/sync_driver/non_blocking_data_type_controller.h View 1 2 3 4 4 chunks +45 lines, -42 lines 0 comments Download
M components/sync_driver/non_blocking_data_type_controller.cc View 1 2 3 4 7 chunks +30 lines, -29 lines 0 comments Download
M components/sync_driver/non_blocking_data_type_controller_unittest.cc View 1 2 3 4 11 chunks +142 lines, -142 lines 0 comments Download
M components/sync_driver/non_blocking_data_type_manager.h View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M components/sync_driver/non_blocking_data_type_manager.cc View 1 2 3 chunks +9 lines, -9 lines 0 comments Download
A + sync/engine/entity_tracker.h View 5 chunks +27 lines, -28 lines 0 comments Download
A + sync/engine/entity_tracker.cc View 10 chunks +52 lines, -57 lines 0 comments Download
A + sync/engine/entity_tracker_unittest.cc View 9 chunks +50 lines, -51 lines 0 comments Download
D sync/engine/model_thread_sync_entity.h View 1 chunk +0 lines, -192 lines 0 comments Download
D sync/engine/model_thread_sync_entity.cc View 1 chunk +0 lines, -172 lines 0 comments Download
D sync/engine/model_thread_sync_entity_unittest.cc View 1 chunk +0 lines, -178 lines 0 comments Download
A + sync/engine/model_type_entity.h View 6 chunks +20 lines, -20 lines 0 comments Download
A + sync/engine/model_type_entity.cc View 6 chunks +46 lines, -48 lines 0 comments Download
A + sync/engine/model_type_entity_unittest.cc View 8 chunks +60 lines, -65 lines 0 comments Download
A + sync/engine/model_type_sync_proxy.h View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
A + sync/engine/model_type_sync_proxy.cc View 1 chunk +5 lines, -2 lines 0 comments Download
A + sync/engine/model_type_sync_proxy_impl.h View 8 chunks +23 lines, -24 lines 0 comments Download
A + sync/engine/model_type_sync_proxy_impl.cc View 10 chunks +48 lines, -51 lines 0 comments Download
A + sync/engine/model_type_sync_proxy_impl_unittest.cc View 14 chunks +88 lines, -89 lines 0 comments Download
A sync/engine/model_type_sync_worker.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A + sync/engine/model_type_sync_worker.cc View 1 chunk +4 lines, -3 lines 0 comments Download
A + sync/engine/model_type_sync_worker_impl.h View 8 chunks +22 lines, -25 lines 0 comments Download
A + sync/engine/model_type_sync_worker_impl.cc View 10 chunks +45 lines, -47 lines 0 comments Download
A + sync/engine/model_type_sync_worker_impl_unittest.cc View 20 chunks +99 lines, -105 lines 0 comments Download
M sync/engine/non_blocking_sync_common.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/non_blocking_type_commit_contribution.h View 2 chunks +4 lines, -4 lines 0 comments Download
M sync/engine/non_blocking_type_commit_contribution.cc View 3 chunks +4 lines, -4 lines 0 comments Download
D sync/engine/non_blocking_type_processor.h View 1 chunk +0 lines, -138 lines 0 comments Download
D sync/engine/non_blocking_type_processor.cc View 1 chunk +0 lines, -250 lines 0 comments Download
D sync/engine/non_blocking_type_processor_core.h View 1 chunk +0 lines, -131 lines 0 comments Download
D sync/engine/non_blocking_type_processor_core.cc View 1 chunk +0 lines, -286 lines 0 comments Download
D sync/engine/non_blocking_type_processor_core_interface.h View 1 chunk +0 lines, -24 lines 0 comments Download
D sync/engine/non_blocking_type_processor_core_interface.cc View 1 chunk +0 lines, -16 lines 0 comments Download
D sync/engine/non_blocking_type_processor_core_unittest.cc View 1 chunk +0 lines, -604 lines 0 comments Download
D sync/engine/non_blocking_type_processor_interface.h View 1 chunk +0 lines, -28 lines 0 comments Download
D sync/engine/non_blocking_type_processor_interface.cc View 1 chunk +0 lines, -15 lines 0 comments Download
D sync/engine/non_blocking_type_processor_unittest.cc View 1 chunk +0 lines, -464 lines 0 comments Download
D sync/engine/sync_thread_sync_entity.h View 1 chunk +0 lines, -155 lines 0 comments Download
D sync/engine/sync_thread_sync_entity.cc View 1 chunk +0 lines, -242 lines 0 comments Download
D sync/engine/sync_thread_sync_entity_unittest.cc View 1 chunk +0 lines, -164 lines 0 comments Download
A + sync/internal_api/public/sync_context_proxy.h View 1 2 3 4 2 chunks +13 lines, -13 lines 0 comments Download
D sync/internal_api/public/sync_core_proxy.h View 1 chunk +0 lines, -45 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 3 chunks +3 lines, -3 lines 0 comments Download
A sync/internal_api/public/test/null_sync_context_proxy.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
D sync/internal_api/public/test/null_sync_core_proxy.h View 1 chunk +0 lines, -33 lines 0 comments Download
A + sync/internal_api/sync_context.h View 1 2 3 4 3 chunks +17 lines, -17 lines 0 comments Download
A sync/internal_api/sync_context.cc View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A + sync/internal_api/sync_context_proxy.cc View 1 chunk +5 lines, -2 lines 0 comments Download
A + sync/internal_api/sync_context_proxy_impl.h View 1 2 3 4 1 chunk +21 lines, -21 lines 0 comments Download
A sync/internal_api/sync_context_proxy_impl.cc View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A sync/internal_api/sync_context_proxy_impl_unittest.cc View 1 chunk +89 lines, -0 lines 0 comments Download
D sync/internal_api/sync_core.h View 1 chunk +0 lines, -64 lines 0 comments Download
D sync/internal_api/sync_core.cc View 1 chunk +0 lines, -37 lines 0 comments Download
D sync/internal_api/sync_core_proxy.cc View 1 chunk +0 lines, -13 lines 0 comments Download
D sync/internal_api/sync_core_proxy_impl.h View 1 chunk +0 lines, -60 lines 0 comments Download
D sync/internal_api/sync_core_proxy_impl.cc View 1 chunk +0 lines, -47 lines 0 comments Download
D sync/internal_api/sync_core_proxy_impl_unittest.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 4 chunks +5 lines, -5 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 3 chunks +11 lines, -11 lines 0 comments Download
M sync/internal_api/sync_rollback_manager_base.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_rollback_manager_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A sync/internal_api/test/null_sync_context_proxy.cc View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
D sync/internal_api/test/null_sync_core_proxy.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M sync/sessions/model_type_registry.h View 1 2 3 4 3 chunks +9 lines, -9 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 1 2 3 4 5 chunks +61 lines, -63 lines 0 comments Download
M sync/sessions/model_type_registry_unittest.cc View 8 chunks +20 lines, -20 lines 0 comments Download
M sync/sync_core.gypi View 1 5 chunks +17 lines, -17 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 2 chunks +8 lines, -8 lines 0 comments Download
M sync/sync_tests.gypi View 1 5 chunks +13 lines, -13 lines 0 comments Download
A sync/test/engine/injectable_sync_context_proxy.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A sync/test/engine/injectable_sync_context_proxy.cc View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
D sync/test/engine/injectable_sync_core_proxy.h View 1 chunk +0 lines, -47 lines 0 comments Download
D sync/test/engine/injectable_sync_core_proxy.cc View 1 chunk +0 lines, -51 lines 0 comments Download
A + sync/test/engine/mock_model_type_sync_proxy.h View 4 chunks +12 lines, -12 lines 0 comments Download
A + sync/test/engine/mock_model_type_sync_proxy.cc View 13 chunks +32 lines, -37 lines 0 comments Download
A + sync/test/engine/mock_model_type_sync_worker.h View 3 chunks +11 lines, -13 lines 0 comments Download
A + sync/test/engine/mock_model_type_sync_worker.cc View 7 chunks +15 lines, -19 lines 0 comments Download
D sync/test/engine/mock_non_blocking_type_processor.h View 1 chunk +0 lines, -136 lines 0 comments Download
D sync/test/engine/mock_non_blocking_type_processor.cc View 1 chunk +0 lines, -258 lines 0 comments Download
D sync/test/engine/mock_non_blocking_type_processor_core.h View 1 chunk +0 lines, -82 lines 0 comments Download
D sync/test/engine/mock_non_blocking_type_processor_core.cc View 1 chunk +0 lines, -175 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rlarocque
Here are the renames we discussed last week. Most of this refactoring was done using ...
6 years, 6 months ago (2014-06-23 22:57:58 UTC) #1
stanisc
LGTM. I have a few minor comments - feel free addressing them in the next ...
6 years, 6 months ago (2014-06-24 21:59:01 UTC) #2
Nicolas Zea
LGTM, with the caveat that in general scoped_refptrs and WeakPtrs should be passed by const ...
6 years, 6 months ago (2014-06-24 22:42:48 UTC) #3
rlarocque
Two new patches uploaded. In an attempt to commit quickly and avoid rebase issues, I'm ...
6 years, 6 months ago (2014-06-24 23:08:33 UTC) #4
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-06-24 23:09:20 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/351523003/80001
6 years, 6 months ago (2014-06-24 23:14:35 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 05:52:36 UTC) #7
Message was sent while issue was closed.
Change committed as 279618

Powered by Google App Engine
This is Rietveld 408576698