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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix build (Referrer is a struct, not a class) Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « content/browser/renderer_host/resource_request_info_impl.cc ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698