summaryrefslogtreecommitdiffstats
path: root/extensions/shell
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-06-02 14:55:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-02 21:55:39 +0000
commit4bb32d7a792124a5919bbc7a8c715ca845c7996a (patch)
treed93d09922a1ffdd8195a46811f20e207930ae032 /extensions/shell
parente64be7c4fc7240a9a1c612aec75dbe50305757f2 (diff)
downloadchromium_src-4bb32d7a792124a5919bbc7a8c715ca845c7996a.zip
chromium_src-4bb32d7a792124a5919bbc7a8c715ca845c7996a.tar.gz
chromium_src-4bb32d7a792124a5919bbc7a8c715ca845c7996a.tar.bz2
[Extensions OOPI] Make programmatic script injection use frame logic
Instead of sending an inject message to a single RenderView, have the browser send inject messages to each of the relevant render frames, and eliminate the usage of RenderView. For now, permissioning is still done on the renderer side, and content scripts are unchanged. BUG=455776 Review URL: https://codereview.chromium.org/1156583002 Cr-Commit-Position: refs/heads/master@{#332471}
Diffstat (limited to 'extensions/shell')
-rw-r--r--extensions/shell/renderer/shell_content_renderer_client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/shell/renderer/shell_content_renderer_client.cc b/extensions/shell/renderer/shell_content_renderer_client.cc
index 88df15c..a123363 100644
--- a/extensions/shell/renderer/shell_content_renderer_client.cc
+++ b/extensions/shell/renderer/shell_content_renderer_client.cc
@@ -68,6 +68,7 @@ void ShellContentRendererClient::RenderFrameCreated(
content::RenderFrame* render_frame) {
// ExtensionFrameHelper destroys itself when the RenderFrame is destroyed.
new ExtensionFrameHelper(render_frame, extension_dispatcher_.get());
+ extension_dispatcher_->OnRenderFrameCreated(render_frame);
// TODO(jamescook): Do we need to add a new PepperHelper(render_frame) here?
// It doesn't seem necessary for either Pepper or NaCl.
@@ -80,7 +81,6 @@ void ShellContentRendererClient::RenderFrameCreated(
void ShellContentRendererClient::RenderViewCreated(
content::RenderView* render_view) {
new ExtensionHelper(render_view, extension_dispatcher_.get());
- extension_dispatcher_->OnRenderViewCreated(render_view);
}
bool ShellContentRendererClient::OverrideCreatePlugin(