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

Issue 1848793006: [Sync] Register USS types with ModelTypeRegistry before download (Closed)

Created:
4 years, 8 months ago by pavely
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tim+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org, Gang Wu, maxbogue, skym, Patrick Noland
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed comments from Sky and Max. #

Total comments: 16

Patch Set 3 : Addressed comments from Max and Nicolas. #

Patch Set 4 : Fix build. #

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

Messages

Total messages: 23 (11 generated)
pavely
4 years, 8 months ago (2016-04-01 19:01:36 UTC) #5
skym
lgtm https://codereview.chromium.org/1848793006/diff/1/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/1848793006/diff/1/components/sync_driver/data_type_manager_impl.cc#newcode180 components/sync_driver/data_type_manager_impl.cc:180: continue; Why bother with continue? Why not just ...
4 years, 8 months ago (2016-04-01 21:58:22 UTC) #6
maxbogue
lgtm https://codereview.chromium.org/1848793006/diff/1/components/sync_driver/non_blocking_data_type_controller.h File components/sync_driver/non_blocking_data_type_controller.h (right): https://codereview.chromium.org/1848793006/diff/1/components/sync_driver/non_blocking_data_type_controller.h#newcode53 components/sync_driver/non_blocking_data_type_controller.h:53: // Registers non-blocking data type with sync backend. ...
4 years, 8 months ago (2016-04-01 22:43:14 UTC) #7
pavely
https://codereview.chromium.org/1848793006/diff/1/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/1848793006/diff/1/components/sync_driver/data_type_manager_impl.cc#newcode180 components/sync_driver/data_type_manager_impl.cc:180: continue; On 2016/04/01 21:58:21, skym wrote: > Why bother ...
4 years, 8 months ago (2016-04-04 17:57:16 UTC) #8
maxbogue
Still lgtm, just some tiny nits. https://codereview.chromium.org/1848793006/diff/40001/components/sync_driver/glue/sync_backend_registrar.cc File components/sync_driver/glue/sync_backend_registrar.cc (left): https://codereview.chromium.org/1848793006/diff/40001/components/sync_driver/glue/sync_backend_registrar.cc#oldcode284 components/sync_driver/glue/sync_backend_registrar.cc:284: default: Might be ...
4 years, 8 months ago (2016-04-04 18:08:14 UTC) #9
Nicolas Zea
lgtm https://codereview.chromium.org/1848793006/diff/40001/components/sync_driver/data_type_controller.h File components/sync_driver/data_type_controller.h (right): https://codereview.chromium.org/1848793006/diff/40001/components/sync_driver/data_type_controller.h#newcode101 components/sync_driver/data_type_controller.h:101: // Registers with sync backend if needed. This ...
4 years, 8 months ago (2016-04-04 20:25:43 UTC) #10
pavely
https://codereview.chromium.org/1848793006/diff/40001/components/sync_driver/data_type_controller.h File components/sync_driver/data_type_controller.h (right): https://codereview.chromium.org/1848793006/diff/40001/components/sync_driver/data_type_controller.h#newcode101 components/sync_driver/data_type_controller.h:101: // Registers with sync backend if needed. This function ...
4 years, 8 months ago (2016-04-05 18:21:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848793006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848793006/60001
4 years, 8 months ago (2016-04-05 18:22:01 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/45896) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-05 18:35:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848793006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848793006/80001
4 years, 8 months ago (2016-04-05 18:45:43 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 8 months ago (2016-04-05 19:38:16 UTC) #21
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 19:39:46 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7f2ee45b59370b511a22ba5f7be2c366c51e572a
Cr-Commit-Position: refs/heads/master@{#385257}

Powered by Google App Engine
This is Rietveld 408576698