|
[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}
Total comments: 18
|
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
|
Total messages: 33 (23 generated)
|