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

Issue 1368683003: USS SyncContextProxy / data type activation refactoring (Closed)

Created:
5 years, 3 months ago by stanisc
Modified:
5 years, 2 months ago
Reviewers:
maxbogue, pavely
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

USS SyncContextProxy / data type activation refactoring This refactoring prepares the code to introduction of NonBlockingDataTypeController for USS datatypes. The goal was to split the very large NonBlockingDataTypeController change into a couple of smaller to make it easier to review and verify. The following changes are included here: 1) Introduced ActivationContext which is a structure that contains all arguments needed to activate a USS datatype. For now ActivationContext is passed via SyncContext / SyncContextProxy, but the goal is to pass it directly via BackendDataTypeConfigurer as an argument for ActivateNonBlockingDataType. ActivationContext is needed as a separate class because NonBlockingDataTypeController will have to receive it from the type processor's callback and temporarily hold on to it. 2) BackendDataTypeConfigurer - two activation methods are renamed to be directory specific and two more activation methods for non-blocking data types are added. 3) DataTypeController cleanup - OnModelLoaded() virtual method shouldn't be on the base class because it applies only to some of the subclasses and is never invoked via the base class. BUG=515962 Committed: https://crrev.com/a4e4a10e92844d0274895c1d078d9119fa76f041 Cr-Commit-Position: refs/heads/master@{#351110}

Patch Set 1 : #

Total comments: 17

Patch Set 2 : Addressed CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -168 lines) Patch
M chrome/browser/sync/glue/non_frontend_data_type_controller.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_mock.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.h View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.h View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.cc View 1 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync_driver/backend_data_type_configurer.h View 2 chunks +18 lines, -5 lines 0 comments Download
M components/sync_driver/data_type_controller.h View 1 chunk +0 lines, -5 lines 0 comments Download
M components/sync_driver/data_type_manager_impl_unittest.cc View 2 chunks +15 lines, -4 lines 0 comments Download
M components/sync_driver/directory_data_type_controller.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/sync_driver/fake_data_type_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync_driver/fake_data_type_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/sync_driver/frontend_data_type_controller.h View 2 chunks +5 lines, -3 lines 0 comments Download
M components/sync_driver/frontend_data_type_controller_mock.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync_driver/non_blocking_data_type_controller_unittest.cc View 1 4 chunks +10 lines, -10 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller.h View 3 chunks +5 lines, -5 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller_mock.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync_driver/proxy_data_type_controller.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/sync_driver/proxy_data_type_controller.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/sync_driver/ui_data_type_controller.h View 2 chunks +5 lines, -3 lines 0 comments Download
M sync/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M sync/engine/model_type_processor_impl.cc View 1 2 chunks +11 lines, -6 lines 0 comments Download
M sync/engine/model_type_processor_impl_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A + sync/internal_api/activation_context.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
A sync/internal_api/public/activation_context.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
M sync/internal_api/public/sync_context.h View 1 3 chunks +4 lines, -11 lines 0 comments Download
M sync/internal_api/public/sync_context_proxy.h View 1 2 chunks +3 lines, -8 lines 0 comments Download
M sync/internal_api/public/test/null_sync_context_proxy.h View 2 chunks +1 line, -6 lines 0 comments Download
M sync/internal_api/sync_context_proxy_impl.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M sync/internal_api/sync_context_proxy_impl.cc View 1 2 chunks +6 lines, -13 lines 0 comments Download
M sync/internal_api/test/null_sync_context_proxy.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M sync/sessions/model_type_registry.h View 1 chunk +1 line, -5 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 1 2 chunks +9 lines, -9 lines 0 comments Download
M sync/sessions/model_type_registry_unittest.cc View 1 6 chunks +39 lines, -18 lines 0 comments Download
M sync/sync.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M sync/test/engine/injectable_sync_context_proxy.h View 1 chunk +1 line, -3 lines 0 comments Download
M sync/test/engine/injectable_sync_context_proxy.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
stanisc
maxbodgue@, pavely@, could either of you review this? This is mostly code removal / cleanup ...
5 years, 2 months ago (2015-09-25 16:26:08 UTC) #6
pavely
Mostly nits. https://codereview.chromium.org/1368683003/diff/80001/components/sync_driver/non_blocking_data_type_controller_unittest.cc File components/sync_driver/non_blocking_data_type_controller_unittest.cc (right): https://codereview.chromium.org/1368683003/diff/80001/components/sync_driver/non_blocking_data_type_controller_unittest.cc#newcode186 components/sync_driver/non_blocking_data_type_controller_unittest.cc:186: base::ThreadTaskRunnerHandle model_thread_handle_; Are you using model_thread_handle_? I ...
5 years, 2 months ago (2015-09-25 18:22:39 UTC) #7
stanisc
https://codereview.chromium.org/1368683003/diff/80001/components/sync_driver/non_blocking_data_type_controller_unittest.cc File components/sync_driver/non_blocking_data_type_controller_unittest.cc (right): https://codereview.chromium.org/1368683003/diff/80001/components/sync_driver/non_blocking_data_type_controller_unittest.cc#newcode186 components/sync_driver/non_blocking_data_type_controller_unittest.cc:186: base::ThreadTaskRunnerHandle model_thread_handle_; On 2015/09/25 18:22:38, pavely wrote: > Are ...
5 years, 2 months ago (2015-09-26 00:16:01 UTC) #8
pavely
lgtm https://codereview.chromium.org/1368683003/diff/80001/components/sync_driver/non_blocking_data_type_controller_unittest.cc File components/sync_driver/non_blocking_data_type_controller_unittest.cc (right): https://codereview.chromium.org/1368683003/diff/80001/components/sync_driver/non_blocking_data_type_controller_unittest.cc#newcode186 components/sync_driver/non_blocking_data_type_controller_unittest.cc:186: base::ThreadTaskRunnerHandle model_thread_handle_; On 2015/09/26 00:16:01, stanisc wrote: > ...
5 years, 2 months ago (2015-09-28 17:04:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368683003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368683003/100001
5 years, 2 months ago (2015-09-28 17:50:31 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:100001)
5 years, 2 months ago (2015-09-28 19:28:56 UTC) #12
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 19:31:04 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a4e4a10e92844d0274895c1d078d9119fa76f041
Cr-Commit-Position: refs/heads/master@{#351110}

Powered by Google App Engine
This is Rietveld 408576698