|
[Sync] Register USS types with ModelTypeRegistry before download
In this change:
- Introduced RegisterWithBackend in DTC. It is called right after LoadModels
but before first configure. It allows datatype to register with backend
classes.
- Introduced GROUP_NON_BLOCKING model safe group. ModelTypeRegistry will not
create directory based update handler and commit contributor for types in this
group
- SyncBackendRegistrar keeps track of set of USS types. When configured, USS
types are assigned to GROUP_NON_BLOCKING group. USS types should call
SyncBackendRegistrar::RegisterNonBlockingType to be added to type set.
This change allows DeviceInfo to download initiali set of entries.
Initialization still fails because SyncManagerImpl can't discover that initial
sync is done for USS types, I'll address it in the next change.
R=zea@chromium.org
BUG= 530713
Committed: https://crrev.com/7f2ee45b59370b511a22ba5f7be2c366c51e572a
Cr-Commit-Position: refs/heads/master@{#385257}
Total comments: 16
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+169 lines, -52 lines) |
Patch |
 |
M |
components/browser_sync/browser/profile_sync_service.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/backend_data_type_configurer.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_controller.h
|
View
|
1
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/directory_data_type_controller.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/directory_data_type_controller.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/fake_data_type_controller.h
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/fake_data_type_controller.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/glue/sync_backend_host_impl.cc
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/glue/sync_backend_registrar.h
|
View
|
1
2
|
4 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/glue/sync_backend_registrar.cc
|
View
|
1
2
3
|
5 chunks |
+20 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/glue/sync_backend_registrar_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/non_blocking_data_type_controller.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/non_blocking_data_type_controller.cc
|
View
|
1
|
2 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/non_ui_model_type_controller_unittest.cc
|
View
|
|
3 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/proxy_data_type_controller.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/proxy_data_type_controller.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/ui_model_type_controller_unittest.cc
|
View
|
|
3 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/model_safe_worker.h
|
View
|
1
2
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/model_safe_worker.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/model_safe_worker_unittest.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.cc
|
View
|
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry_unittest.cc
|
View
|
|
8 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
Total messages: 23 (11 generated)
|