|
sync: cut a few profile deps from DataTypeControllers.
- UserShare: previously the DTC would query PSS::GetUserShare whenever it decided it needed it, implicitly abiding by the rule that GetUserShare shall not be called until backend initialization is complete (implicit because the DTC knows nothing about backend init in theory, but we had carefully ordered things to work). Instead, we now pass it deterministically as soon as the share becomes available via an explicit call to the DTC (which the PSS already tracks).
- DeactivateDataType: Changes the precondition to DTC::Stop such that it expects the backend has already been informed to stop routing changes for its type. The Deactivate call can be done safely up front by the DataTypeManager (which also handles ActivateDataType).
- Profile: [Non]UIDataTypeController doesn't need a profile, so push that dep down to the subclasses in browser/ that require it.
- ProfileSyncComponentsFactory: the DTCs should now be able to use SyncApiComponentFactory interface exclusively.
Also rename ModelAssociationResultProcessor -> ModelAssociationManagerDelegate.
BUG= 339726
R=haitaol@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275935
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+214 lines, -170 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/autofill_data_type_controller.h
|
View
|
1
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/autofill_data_type_controller.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/autofill_profile_data_type_controller.h
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
|
View
|
|
5 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/extension_data_type_controller.h
|
View
|
1
2
3
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/extension_data_type_controller.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/extension_setting_data_type_controller.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_ui_data_type_controller.h
|
View
|
1
|
5 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_ui_data_type_controller.cc
|
View
|
|
6 chunks |
+7 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_ui_data_type_controller_unittest.cc
|
View
|
|
4 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_data_type_controller.h
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_data_type_controller.cc
|
View
|
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/search_engine_data_type_controller.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/search_engine_data_type_controller.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc
|
View
|
1
2
3
4
|
4 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/theme_data_type_controller.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/theme_data_type_controller.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller.h
|
View
|
1
2
3
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller.cc
|
View
|
1
2
3
|
5 chunks |
+6 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller_unittest.cc
|
View
|
1
2
3
4
|
6 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_impl.cc
|
View
|
1
2
3
|
13 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/session_data_type_controller.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sessions/session_data_type_controller.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_controller.h
|
View
|
|
4 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_controller.cc
|
View
|
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl.cc
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl_unittest.cc
|
View
|
|
12 chunks |
+25 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/model_association_manager.h
|
View
|
1
|
3 chunks |
+19 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/model_association_manager.cc
|
View
|
1
|
7 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/model_association_manager_unittest.cc
|
View
|
1
|
18 chunks |
+28 lines, -23 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|