summaryrefslogtreecommitdiffstats
path: root/src/core/renderer_host/user_resource_controller_host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/renderer_host/user_resource_controller_host.cpp')
-rw-r--r--src/core/renderer_host/user_resource_controller_host.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/renderer_host/user_resource_controller_host.cpp b/src/core/renderer_host/user_resource_controller_host.cpp
index 95385ae2f..cf0cbd357 100644
--- a/src/core/renderer_host/user_resource_controller_host.cpp
+++ b/src/core/renderer_host/user_resource_controller_host.cpp
@@ -79,14 +79,10 @@ void UserResourceControllerHost::WebContentsObserverHelper::RenderViewCreated(co
}
void UserResourceControllerHost::WebContentsObserverHelper::RenderViewHostChanged(content::RenderViewHost *oldHost,
- content::RenderViewHost *newHost)
+ content::RenderViewHost */*newHost*/)
{
if (oldHost)
oldHost->Send(new RenderViewObserverHelper_ClearScripts(oldHost->GetRoutingID()));
-
- content::WebContents *contents = web_contents();
- Q_FOREACH (const UserScript &script, m_controllerHost->m_perContentsScripts.value(contents))
- newHost->Send(new RenderViewObserverHelper_AddScript(newHost->GetRoutingID(), script.data()));
}
void UserResourceControllerHost::WebContentsObserverHelper::WebContentsDestroyed()