Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index cb5de44b0e48d9b022f78d51c993a469f8ef50a5..8d21408c90642279b06c415eac0d48661eec760a 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -1783,13 +1783,11 @@ void WebContentsImpl::DidStartProvisionalLoadForFrame( |
GURL validated_opener_url(opener_url); |
content::RenderProcessHost* render_process_host = |
render_view_host->GetProcess(); |
- RenderViewHostImpl::FilterURL( |
- ChildProcessSecurityPolicyImpl::GetInstance(), |
+ RenderViewHost::FilterURL( |
render_process_host->GetID(), |
false, |
&validated_url); |
- RenderViewHostImpl::FilterURL( |
- ChildProcessSecurityPolicyImpl::GetInstance(), |
+ RenderViewHost::FilterURL( |
render_process_host->GetID(), |
true, |
&validated_opener_url); |
@@ -1867,8 +1865,7 @@ void WebContentsImpl::DidFailProvisionalLoadWithError( |
GURL validated_url(params.url); |
content::RenderProcessHost* render_process_host = |
render_view_host->GetProcess(); |
- RenderViewHostImpl::FilterURL( |
- ChildProcessSecurityPolicyImpl::GetInstance(), |
+ RenderViewHost::FilterURL( |
render_process_host->GetID(), |
false, |
&validated_url); |