Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Issue 3163044: Expose Extension Bindings to Component Applications (Closed)

Created:
10 years, 4 months ago by rafaelw
Modified:
9 years, 7 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Expose Extension Bindings to Component Applications This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57788

Patch Set 1 #

Patch Set 2 : added renderer side check for component app #

Total comments: 7

Patch Set 3 : merge changes. fixed tests #

Patch Set 4 : review chanecs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -112 lines) Patch
M chrome/browser/browser_url_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/dom_ui_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui_factory.cc View 1 2 4 chunks +16 lines, -13 lines 0 comments Download
M chrome/browser/extensions/app_process_apitest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/content_script_all_frames_apitest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 3 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_messages_browsertest.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/notifications/balloon_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_manager.cc View 2 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 3 chunks +47 lines, -0 lines 0 comments Download
M chrome/common/render_messages_params.h View 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages_params.cc View 2 3 chunks +25 lines, -1 line 0 comments Download
M chrome/renderer/extensions/event_bindings.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/event_bindings.cc View 1 2 3 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 1 2 3 8 chunks +14 lines, -43 lines 0 comments Download
M chrome/renderer/extensions/extension_renderer_info.h View 3 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_renderer_info.cc View 3 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/mock_render_thread.cc View 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 1 chunk +28 lines, -14 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rafaelw
10 years, 4 months ago (2010-08-26 20:39:15 UTC) #1
Matt Perry
LGTM with a few small bits http://codereview.chromium.org/3163044/diff/2001/3004 File chrome/browser/extensions/extension_function_dispatcher.cc (right): http://codereview.chromium.org/3163044/diff/2001/3004#newcode341 chrome/browser/extensions/extension_function_dispatcher.cc:341: extension = service->GetExtensionByWebExtent(url); ...
10 years, 4 months ago (2010-08-26 22:10:43 UTC) #2
rafaelw
Note that I decided to just DISABLE ContentScriptExtensionIframe until we can implement the v8proxy delegate. ...
10 years, 3 months ago (2010-08-27 18:30:38 UTC) #3
Matt Perry
On Fri, Aug 27, 2010 at 11:30 AM, <[email protected]> wrote: > Note that I decided ...
10 years, 3 months ago (2010-08-27 20:50:46 UTC) #4
rafaelw1
10 years, 3 months ago (2010-08-27 21:01:54 UTC) #5
I think we can fix it post branch before it goes out.

On Fri, Aug 27, 2010 at 1:50 PM, Matt Perry <[email protected]> wrote:
> On Fri, Aug 27, 2010 at 11:30 AM, <[email protected]> wrote:
>>
>> Note that I decided to just DISABLE ContentScriptExtensionIframe until we
>> can
>> implement the v8proxy delegate. enabling bindings for
>> is_extension_process_ ||
>> scheme = "chrome-extension" didn't work and I suspect that tracking down
>> why may
>> be more work than just implementing the v8proxy delegate.
>
> Does that mean http://code.google.com/p/chromium/issues/detail?id=37920 will
> regress?

Powered by Google App Engine
This is Rietveld 408576698