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

Issue 131743021: app_shell: Extract extension runtime data from ExtensionService (Closed)

Created:
6 years, 11 months ago by James Cook
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tfarina, robertshield, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

app_shell: Extract extension runtime data from ExtensionService This allows ExtensionHost to use the data when there is no ExtensionService, such as when running app_shell. BUG=332982 TEST=Added unit test, existing extensions browser tests TBR=msw@chromium.org for mechanical change to chrome/browser/ui/views/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246449

Patch Set 1 #

Patch Set 2 : cleanup, unit test (runtime_data) #

Total comments: 12

Patch Set 3 : rename, bitmask (runtime_data) #

Total comments: 1

Patch Set 4 : add ExtensionRegistry observer (runtime_data) #

Total comments: 2

Patch Set 5 : TriggerOnUnloaded (runtime_data) #

Total comments: 19

Patch Set 6 : Only use OnUnloaded (runtime_data) #

Total comments: 1

Patch Set 7 : rebase, RuntimeDataTest tweak, win warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+430 lines, -142 lines) Patch
M apps/shell/shell_extension_system.h View 2 chunks +2 lines, -0 lines 0 comments Download
M apps/shell/shell_extension_system.cc View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M apps/shell/shell_extensions_browser_client.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 4 5 6 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 3 chunks +11 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.cc View 1 2 3 4 5 6 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_helpers.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 3 chunks +0 lines, -37 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 11 chunks +12 lines, -57 lines 0 comments Download
M chrome/browser/extensions/extension_system.h View 1 5 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 6 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_view_host.cc View 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_registry.h View 1 2 3 4 5 4 chunks +12 lines, -0 lines 0 comments Download
M extensions/browser/extension_registry.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
A extensions/browser/extension_registry_observer.h View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
A extensions/browser/runtime_data.h View 1 2 3 4 5 1 chunk +84 lines, -0 lines 0 comments Download
A extensions/browser/runtime_data.cc View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
A extensions/browser/runtime_data_unittest.cc View 1 2 3 4 5 6 1 chunk +108 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
James Cook
kalman, PTAL https://codereview.chromium.org/131743021/diff/30001/chrome/browser/extensions/extension_host.cc File chrome/browser/extensions/extension_host.cc (right): https://codereview.chromium.org/131743021/diff/30001/chrome/browser/extensions/extension_host.cc#newcode327 chrome/browser/extensions/extension_host.cc:327: ExtensionSystem::GetForBrowserContext(browser_context_) This block is the primary motivation ...
6 years, 11 months ago (2014-01-17 18:14:43 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/131743021/diff/30001/apps/shell/shell_extension_system.h File apps/shell/shell_extension_system.h (right): https://codereview.chromium.org/131743021/diff/30001/apps/shell/shell_extension_system.h#newcode44 apps/shell/shell_extension_system.h:44: virtual RuntimeData* runtime_data() OVERRIDE; I'm curious; what is the ...
6 years, 11 months ago (2014-01-18 01:09:04 UTC) #2
James Cook
kalman, please take another look https://codereview.chromium.org/131743021/diff/30001/apps/shell/shell_extension_system.h File apps/shell/shell_extension_system.h (right): https://codereview.chromium.org/131743021/diff/30001/apps/shell/shell_extension_system.h#newcode44 apps/shell/shell_extension_system.h:44: virtual RuntimeData* runtime_data() OVERRIDE; ...
6 years, 11 months ago (2014-01-18 02:01:18 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/131743021/diff/30001/apps/shell/shell_extension_system.h File apps/shell/shell_extension_system.h (right): https://codereview.chromium.org/131743021/diff/30001/apps/shell/shell_extension_system.h#newcode44 apps/shell/shell_extension_system.h:44: virtual RuntimeData* runtime_data() OVERRIDE; On 2014/01/18 02:01:18, James Cook ...
6 years, 11 months ago (2014-01-21 18:47:46 UTC) #4
James Cook
kalman, please take another look. I think this approach works OK. https://codereview.chromium.org/131743021/diff/210001/extensions/browser/extension_registry.h File extensions/browser/extension_registry.h (right): ...
6 years, 11 months ago (2014-01-21 23:20:39 UTC) #5
not at google - send to devlin
responding to comments. feel free to ping me instead. https://codereview.chromium.org/131743021/diff/210001/extensions/browser/extension_registry.h File extensions/browser/extension_registry.h (right): https://codereview.chromium.org/131743021/diff/210001/extensions/browser/extension_registry.h#newcode75 extensions/browser/extension_registry.h:75: ...
6 years, 11 months ago (2014-01-21 23:58:58 UTC) #6
James Cook
kalman, please take another look
6 years, 11 months ago (2014-01-22 01:00:47 UTC) #7
not at google - send to devlin
I guess this change is more subtle than expected! See my next huge collection of ...
6 years, 11 months ago (2014-01-22 16:17:42 UTC) #8
James Cook
Some comments from the bus. I'm getting kind of frustrated with this patch. I'm at ...
6 years, 11 months ago (2014-01-22 17:41:52 UTC) #9
not at google - send to devlin
Yes let's chat. I think this CL is fine but it has exposed potential bugs ...
6 years, 11 months ago (2014-01-22 17:49:06 UTC) #10
James Cook
kalman, does ExtensionService look OK with this patch?
6 years, 11 months ago (2014-01-22 21:03:57 UTC) #11
not at google - send to devlin
lgtm https://codereview.chromium.org/131743021/diff/440002/extensions/browser/runtime_data_unittest.cc File extensions/browser/runtime_data_unittest.cc (right): https://codereview.chromium.org/131743021/diff/440002/extensions/browser/runtime_data_unittest.cc#newcode44 extensions/browser/runtime_data_unittest.cc:44: RuntimeData runtime_data(&registry); you could do this in a ...
6 years, 11 months ago (2014-01-22 21:08:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/131743021/830001
6 years, 11 months ago (2014-01-22 21:43:50 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-22 23:47:26 UTC) #14
Message was sent while issue was closed.
Change committed as 246449

Powered by Google App Engine
This is Rietveld 408576698