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

Issue 9414020: [Sync] Switch Extension Settings DTC to use ProfilesyncComponentsFactory (Closed)

Created:
8 years, 10 months ago by Nicolas Zea
Modified:
8 years, 10 months ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, mihaip+watch_chromium.org, Aaron Boodman, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Switch Extension Settings DTC to use ProfilesyncComponentsFactory Extension settings now has an API call to get the underlying SyncableService. We now call that from CreateExtensionOrAppSettingsSyncComponents, instead of passing in the syncable service directly from the DTC. This lets us get rid of the RunWithSyncableService complexity, allows for easier dependency injection, and means anyone can use the sync factory to easily get the SyncableService for Extension/App Settings. BUG=104658 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123579

Patch Set 1 #

Patch Set 2 : Remove RunWithSyncableService and clean up #

Total comments: 14

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Address comments and rebase onto trunk #

Patch Set 5 : DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -77 lines) Patch
M chrome/browser/extensions/settings/settings_apitest.cc View 1 2 1 chunk +10 lines, -16 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.h View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.cc View 1 2 3 4 2 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_unittest.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 5 chunks +3 lines, -23 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Nicolas Zea
PTAL. This change is necessary to switch ExtensionSettings over to the new DTC format (where ...
8 years, 10 months ago (2012-02-16 22:08:14 UTC) #1
not at google - send to devlin
LG pending thread safe comments. What is the context for needing this change? https://chromiumcodereview.appspot.com/9414020/diff/4001/chrome/browser/extensions/settings/settings_apitest.cc File ...
8 years, 10 months ago (2012-02-16 22:58:44 UTC) #2
Nicolas Zea
The context is that we use the ProfileSyncComponentsFactory to hide the logic for getting a ...
8 years, 10 months ago (2012-02-17 20:59:11 UTC) #3
Nicolas Zea
Comments addressed (RunAllPending call is still necessary, but I got rid of the PostTask's). Fred? ...
8 years, 10 months ago (2012-02-23 00:27:58 UTC) #4
akalin
sync LGTM http://codereview.chromium.org/9414020/diff/10008/chrome/browser/extensions/settings/settings_frontend.h File chrome/browser/extensions/settings/settings_frontend.h (right): http://codereview.chromium.org/9414020/diff/10008/chrome/browser/extensions/settings/settings_frontend.h#newcode31 chrome/browser/extensions/settings/settings_frontend.h:31: // GetBackendForSync(), which should be called on ...
8 years, 10 months ago (2012-02-23 01:39:56 UTC) #5
Nicolas Zea
Done, committing once trybots go green.
8 years, 10 months ago (2012-02-23 01:48:02 UTC) #6
not at google - send to devlin
lgtm, but please follow up on those comments. http://codereview.chromium.org/9414020/diff/4001/chrome/browser/extensions/settings/settings_apitest.cc File chrome/browser/extensions/settings/settings_apitest.cc (right): http://codereview.chromium.org/9414020/diff/4001/chrome/browser/extensions/settings/settings_apitest.cc#newcode79 chrome/browser/extensions/settings/settings_apitest.cc:79: GetBackendForSync(syncable::EXTENSION_SETTINGS))); ...
8 years, 10 months ago (2012-02-23 02:15:38 UTC) #7
Nicolas Zea
Comments addressed. http://codereview.chromium.org/9414020/diff/4001/chrome/browser/extensions/settings/settings_apitest.cc File chrome/browser/extensions/settings/settings_apitest.cc (right): http://codereview.chromium.org/9414020/diff/4001/chrome/browser/extensions/settings/settings_apitest.cc#newcode79 chrome/browser/extensions/settings/settings_apitest.cc:79: GetBackendForSync(syncable::EXTENSION_SETTINGS))); On 2012/02/23 02:15:38, kalman wrote: > ...
8 years, 10 months ago (2012-02-24 21:38:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/9414020/17001
8 years, 10 months ago (2012-02-24 21:38:17 UTC) #9
commit-bot: I haz the power
8 years, 10 months ago (2012-02-24 23:13:52 UTC) #10
Change committed as 123579

Powered by Google App Engine
This is Rietveld 408576698