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

Issue 10784035: Refactored SettingsFrontend and forwarding of calls to the backends. (Closed)

Created:
8 years, 5 months ago by Joao da Silva
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Refactored SettingsFrontend and forwarding of calls to the backends. Added a SettingsNamespaceFrontend interface for namespace frontends, that allows different namespaces to forward StorageCallbacks in their own way. The LOCAL and SYNC namespaces use an implementation that does the same as before, but the new MANAGED namespace can now be implemented using a ValueStore that loads settings from policies, in the UI thread. BUG=108992 TEST=Everything works as before, all tests are green Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147464

Patch Set 1 #

Total comments: 35

Patch Set 2 : Renamed classes; added ValueStoreCache::GetMessageLoop; threading handled in SettingsFrontend; remo… #

Patch Set 3 : Rebased #

Patch Set 4 : Fix win build, fix (some) of the leaks during tests, added comments #

Total comments: 8

Patch Set 5 : Pass a PolicyService instead of a Profile to the ManagedValueStoreCache #

Patch Set 6 : Fixed unit_tests leaks #

Patch Set 7 : Added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -267 lines) Patch
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_ui_unittest.cc View 1 2 3 4 5 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/extensions/page_action_controller_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
A chrome/browser/extensions/settings/managed_value_store_cache.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/settings/managed_value_store_cache.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_api.h View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/settings/settings_api.cc View 11 chunks +7 lines, -14 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.h View 1 4 chunks +13 lines, -27 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.cc View 1 2 3 4 5 6 chunks +45 lines, -201 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_namespace.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/settings/settings_namespace.cc View 1 1 chunk +11 lines, -7 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/settings/sync_or_local_value_store_cache.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/extensions/settings/sync_or_local_value_store_cache.cc View 1 2 3 1 chunk +121 lines, -0 lines 0 comments Download
A chrome/browser/extensions/settings/value_store_cache.h View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/extensions/settings/value_store_cache.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Joao da Silva
Here's the initial refactoring to enable the 'managed' namespace. This is basically making a new ...
8 years, 5 months ago (2012-07-17 13:55:49 UTC) #1
not at google - send to devlin
http://codereview.chromium.org/10784035/diff/1/chrome/browser/extensions/settings/settings_frontend.cc File chrome/browser/extensions/settings/settings_frontend.cc (right): http://codereview.chromium.org/10784035/diff/1/chrome/browser/extensions/settings/settings_frontend.cc#newcode28 chrome/browser/extensions/settings/settings_frontend.cc:28: namespace { Revisiting this file after going through the ...
8 years, 5 months ago (2012-07-18 07:46:18 UTC) #2
Joao da Silva
Thanks for the comments, please have another look. There are some leaks in the unit_tests ...
8 years, 5 months ago (2012-07-18 21:40:25 UTC) #3
not at google - send to devlin
lgtm You'll need to update the patch description. Btw, I think that TEST= is for ...
8 years, 5 months ago (2012-07-19 06:43:17 UTC) #4
Joao da Silva
http://codereview.chromium.org/10784035/diff/1/chrome/browser/extensions/settings/settings_managed_frontend.cc File chrome/browser/extensions/settings/settings_managed_frontend.cc (right): http://codereview.chromium.org/10784035/diff/1/chrome/browser/extensions/settings/settings_managed_frontend.cc#newcode14 chrome/browser/extensions/settings/settings_managed_frontend.cc:14: SettingsManagedFrontend::SettingsManagedFrontend(Profile* profile) {} On 2012/07/19 06:43:17, kalman wrote: > ...
8 years, 5 months ago (2012-07-19 11:26:04 UTC) #5
not at google - send to devlin
http://codereview.chromium.org/10784035/diff/17002/chrome/browser/extensions/settings/managed_value_store_cache.h File chrome/browser/extensions/settings/managed_value_store_cache.h (right): http://codereview.chromium.org/10784035/diff/17002/chrome/browser/extensions/settings/managed_value_store_cache.h#newcode28 chrome/browser/extensions/settings/managed_value_store_cache.h:28: scoped_refptr<const Extension> extension) OVERRIDE; On 2012/07/19 11:26:04, Joao da ...
8 years, 5 months ago (2012-07-19 12:29:51 UTC) #6
Joao da Silva
Thanks for the review! All the comments have been addressed by now, and if the ...
8 years, 5 months ago (2012-07-19 13:17:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/10784035/11006
8 years, 5 months ago (2012-07-19 15:44:32 UTC) #8
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 17:22:44 UTC) #9
Change committed as 147464

Powered by Google App Engine
This is Rietveld 408576698