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

Issue 317453002: sync: cut a few profile deps from DataTypeControllers. (Closed)

Created:
6 years, 6 months ago by tim (not reviewing)
Modified:
6 years, 6 months ago
Reviewers:
haitaol1
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, benquan, haitaol+watch_chromium.org, Dane Wallinga, dyu1, chromium-apps-reviews_chromium.org, mkwst+watchlist_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : self review #

Patch Set 3 : missing changes? #

Patch Set 4 : more missing files... #

Total comments: 3

Patch Set 5 : fix test #

Patch Set 6 : move OnUserShareReady #

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

Messages

Total messages: 9 (0 generated)
tim (not reviewing)
6 years, 6 months ago (2014-06-04 17:38:03 UTC) #1
tim (not reviewing)
On 2014/06/04 17:38:03, timsteele wrote: I somehow had the UIDataTypeController changes mixed up into another ...
6 years, 6 months ago (2014-06-05 17:35:17 UTC) #2
haitaol1
https://codereview.chromium.org/317453002/diff/80001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/317453002/diff/80001/chrome/browser/sync/profile_sync_service.cc#newcode1018 chrome/browser/sync/profile_sync_service.cc:1018: for (DataTypeController::TypeMap::iterator it = This should be called at ...
6 years, 6 months ago (2014-06-05 22:07:04 UTC) #3
tim (not reviewing)
https://codereview.chromium.org/317453002/diff/80001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/317453002/diff/80001/chrome/browser/sync/profile_sync_service.cc#newcode1018 chrome/browser/sync/profile_sync_service.cc:1018: for (DataTypeController::TypeMap::iterator it = On 2014/06/05 22:07:04, haitaol1 wrote: ...
6 years, 6 months ago (2014-06-06 18:52:54 UTC) #4
haitaol1
https://codereview.chromium.org/317453002/diff/80001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/317453002/diff/80001/chrome/browser/sync/profile_sync_service.cc#newcode1018 chrome/browser/sync/profile_sync_service.cc:1018: for (DataTypeController::TypeMap::iterator it = On 2014/06/06 18:52:53, timsteele wrote: ...
6 years, 6 months ago (2014-06-06 20:44:34 UTC) #5
haitaol1
lgtm
6 years, 6 months ago (2014-06-09 15:40:56 UTC) #6
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 6 months ago (2014-06-09 17:19:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/317453002/120001
6 years, 6 months ago (2014-06-09 17:21:05 UTC) #8
tim (not reviewing)
6 years, 6 months ago (2014-06-10 04:02:30 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 manually as r275935 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698