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

Issue 2644373003: Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)

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

Description

Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry (patchset #3 id:40001 of https://codereview.chromium.org/2641523004/ ) Reason for revert: This change causes crashes in sync: http://crbug.com/682998 Original issue's description: > [Sync] Make directory types registration explicit in ModelTypeRegistry > > The goal of this change is to make registration of directory types with > ModelTypeRegistry to be driven by individual data type controllers. Today set of > directory data types are registered with single call to > SetEnabledDirectoryTypes, they are derived from routing info passed through > sync manager and scheduler. > > Since datatype registration will be performed as separate posts to sync thread > it is important to switch scheduler to configuration mode at the beginning of > configuration. > > In this change I: > - Added Register/UnregisterDirectoryType to ModelTypeConnector and > ModelTypeRegistry. > - Removed SetEnabledDirectoryTypes form ModelTypeRegistry as it is no longer > needed. > - Added StartConfiguration to SyncEngine. This method needs to be called before > RegisterDirectoryDataType are called so that normal sync cycle doesn't get > executed on sync thread and doesn't include new datatypes before their > services are ready to receive updates. > - Added BeforeLoadModels method to DataTypeController. This method is called > right before LoadModels and allows directory datatypes to register with sync > engine before initial data downloading begins. > > BUG=647505 > R=maxbogue@chromium.org > > Review-Url: https://codereview.chromium.org/2641523004 > Cr-Commit-Position: refs/heads/master@{#444846} > Committed: https://chromium.googlesource.com/chromium/src/+/1c7af89ea2d8e6e5e31be9d1f7bfa6c306584f5d TBR=maxbogue@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=647505 Review-Url: https://codereview.chromium.org/2644373003 Cr-Commit-Position: refs/heads/master@{#445105} Committed: https://chromium.googlesource.com/chromium/src/+/5c363ea4a04878fd491b6e674f802deff42245f6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -546 lines) Patch
M components/browser_sync/profile_sync_service.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/data_type_controller.h View 1 chunk +0 lines, -6 lines 0 comments Download
M components/sync/driver/data_type_manager_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/data_type_manager_impl.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M components/sync/driver/data_type_manager_impl_unittest.cc View 28 chunks +1 line, -55 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.h View 2 chunks +5 lines, -9 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.cc View 2 chunks +19 lines, -25 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.h View 1 chunk +2 lines, -6 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.cc View 5 chunks +11 lines, -19 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.h View 2 chunks +0 lines, -3 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.cc View 3 chunks +6 lines, -18 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl_unittest.cc View 9 chunks +9 lines, -0 lines 0 comments Download
M components/sync/driver/model_association_manager.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/sync/driver/model_association_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/model_association_manager_unittest.cc View 13 chunks +1 line, -18 lines 0 comments Download
M components/sync/driver/model_type_controller.h View 2 chunks +2 lines, -3 lines 0 comments Download
M components/sync/driver/model_type_controller.cc View 2 chunks +12 lines, -14 lines 0 comments Download
M components/sync/driver/model_type_controller_unittest.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/proxy_data_type_controller.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/sync/engine/fake_model_type_connector.h View 1 chunk +2 lines, -4 lines 0 comments Download
M components/sync/engine/fake_model_type_connector.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M components/sync/engine/fake_sync_engine.h View 2 chunks +0 lines, -6 lines 0 comments Download
M components/sync/engine/fake_sync_engine.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M components/sync/engine/fake_sync_manager.h View 6 chunks +11 lines, -8 lines 0 comments Download
M components/sync/engine/fake_sync_manager.cc View 6 chunks +17 lines, -11 lines 0 comments Download
M components/sync/engine/model_type_configurer.h View 1 chunk +0 lines, -10 lines 0 comments Download
M components/sync/engine/model_type_connector.h View 3 chunks +5 lines, -18 lines 0 comments Download
M components/sync/engine/sync_engine.h View 1 chunk +0 lines, -5 lines 0 comments Download
M components/sync/engine/sync_manager.h View 3 chunks +4 lines, -12 lines 0 comments Download
M components/sync/engine_impl/cycle/sync_cycle.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/engine_impl/cycle/sync_cycle_context.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/engine_impl/cycle/sync_cycle_context.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/sync/engine_impl/model_type_connector_proxy.h View 2 chunks +2 lines, -5 lines 0 comments Download
M components/sync/engine_impl/model_type_connector_proxy.cc View 1 chunk +8 lines, -21 lines 0 comments Download
M components/sync/engine_impl/model_type_registry.h View 4 chunks +11 lines, -12 lines 0 comments Download
M components/sync/engine_impl/model_type_registry.cc View 4 chunks +68 lines, -58 lines 0 comments Download
M components/sync/engine_impl/model_type_registry_unittest.cc View 5 chunks +137 lines, -79 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl.cc View 4 chunks +12 lines, -12 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl_unittest.cc View 10 chunks +113 lines, -45 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler.h View 2 chunks +3 lines, -0 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl.cc View 3 chunks +26 lines, -0 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl_unittest.cc View 19 chunks +31 lines, -7 lines 0 comments Download
M components/sync/engine_impl/syncer_unittest.cc View 5 chunks +39 lines, -7 lines 0 comments Download
M components/sync/tools/sync_client.cc View 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
pavely
Created Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry
3 years, 11 months ago (2017-01-20 18:35:05 UTC) #2
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/2644373003/1
3 years, 11 months ago (2017-01-20 18:35:30 UTC) #3
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 18:49:37 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5c363ea4a04878fd491b6e674f80...

Powered by Google App Engine
This is Rietveld 408576698