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

Issue 2384153004: [Sync] Merge NBDTC and subclasses into ModelTypeController. (Closed)

Created:
4 years, 2 months ago by maxbogue
Modified:
4 years, 2 months ago
Reviewers:
skym, *pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Merge NBDTC and subclasses into ModelTypeController. ModelTypeController simply takes a model thread into its constructor and treats the UI thread the same as any other. This CL contains significant cleanup of the test file as well, which contains all the test cases from NonUiModelTypeControllerTest and NonBlockingDataTypeControllerTest: - It no longer uses the real SharedModelTypeProcessor implementation. - It no longer pretends to have a sync thread that's really just the UI thread. - There's a private section to make it clear which pieces are internal. - A better TestBackendDataTypeConfigurer with no MockSyncBackend. Note that ModelTypeProcessorProxy was promoted to its own file in order to implement TestModelTypeProcessor elegantly. BUG=652398 Committed: https://crrev.com/f16e665b08f0c11aa735afc6ecc76e2905ae95da Cr-Commit-Position: refs/heads/master@{#423019}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments + rebase. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix bad rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -1409 lines) Patch
M components/browser_sync/profile_sync_components_factory_impl.cc View 5 chunks +8 lines, -6 lines 0 comments Download
M components/sync/BUILD.gn View 1 5 chunks +5 lines, -9 lines 0 comments Download
A + components/sync/core/model_type_processor_proxy.h View 1 2 3 1 chunk +15 lines, -7 lines 0 comments Download
A components/sync/core/model_type_processor_proxy.cc View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M components/sync/core/shared_model_type_processor.cc View 1 2 2 chunks +1 line, -57 lines 0 comments Download
A + components/sync/driver/model_type_controller.h View 1 5 chunks +17 lines, -20 lines 0 comments Download
A + components/sync/driver/model_type_controller.cc View 1 11 chunks +39 lines, -42 lines 0 comments Download
A components/sync/driver/model_type_controller_unittest.cc View 1 1 chunk +401 lines, -0 lines 0 comments Download
D components/sync/driver/non_blocking_data_type_controller.h View 1 chunk +0 lines, -103 lines 0 comments Download
D components/sync/driver/non_blocking_data_type_controller.cc View 1 1 chunk +0 lines, -230 lines 0 comments Download
D components/sync/driver/non_blocking_data_type_controller_unittest.cc View 1 1 chunk +0 lines, -196 lines 0 comments Download
D components/sync/driver/non_ui_model_type_controller.h View 1 chunk +0 lines, -32 lines 0 comments Download
D components/sync/driver/non_ui_model_type_controller.cc View 1 chunk +0 lines, -17 lines 0 comments Download
D components/sync/driver/non_ui_model_type_controller_unittest.cc View 1 chunk +0 lines, -360 lines 0 comments Download
D components/sync/driver/ui_model_type_controller.h View 1 chunk +0 lines, -35 lines 0 comments Download
D components/sync/driver/ui_model_type_controller.cc View 1 chunk +0 lines, -29 lines 0 comments Download
D components/sync/driver/ui_model_type_controller_unittest.cc View 1 chunk +0 lines, -266 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
maxbogue
Pavely, Sky, PTAL!
4 years, 2 months ago (2016-10-03 22:11:54 UTC) #8
skym
lgtm https://codereview.chromium.org/2384153004/diff/1/components/sync/driver/model_type_controller.h File components/sync/driver/model_type_controller.h (right): https://codereview.chromium.org/2384153004/diff/1/components/sync/driver/model_type_controller.h#newcode25 components/sync/driver/model_type_controller.h:25: // more complicated RunOnModelThread implementation they can create ...
4 years, 2 months ago (2016-10-04 16:28:49 UTC) #11
pavely
lgtm https://codereview.chromium.org/2384153004/diff/1/components/sync/driver/model_type_controller.h File components/sync/driver/model_type_controller.h (right): https://codereview.chromium.org/2384153004/diff/1/components/sync/driver/model_type_controller.h#newcode58 components/sync/driver/model_type_controller.h:58: virtual bool RunOnModelThread(const tracked_objects::Location& from_here, I don't think ...
4 years, 2 months ago (2016-10-04 18:41:12 UTC) #12
maxbogue
https://codereview.chromium.org/2384153004/diff/1/components/sync/driver/model_type_controller.h File components/sync/driver/model_type_controller.h (right): https://codereview.chromium.org/2384153004/diff/1/components/sync/driver/model_type_controller.h#newcode25 components/sync/driver/model_type_controller.h:25: // more complicated RunOnModelThread implementation they can create a ...
4 years, 2 months ago (2016-10-04 20:37:54 UTC) #14
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/2384153004/20001
4 years, 2 months ago (2016-10-04 20:43:37 UTC) #19
commit-bot: I haz the power
Failed to apply patch for components/sync/core/shared_model_type_processor.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-04 22:21:04 UTC) #22
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/2384153004/40001
4 years, 2 months ago (2016-10-04 23:11:49 UTC) #25
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/2384153004/60001
4 years, 2 months ago (2016-10-04 23:26:24 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-05 00:29:44 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 00:33:46 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f16e665b08f0c11aa735afc6ecc76e2905ae95da
Cr-Commit-Position: refs/heads/master@{#423019}

Powered by Google App Engine
This is Rietveld 408576698