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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Created 5 years, 4 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/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index a25fc594cd3861f74bc23bc863bab09ffe8255a5..8e9c1f9b127563ddd69945fa8759f13de220faf5 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -901,8 +901,10 @@ void RenderFrameHostImpl::OnDidCommitProvisionalLoad(const IPC::Message& msg) {
// DidCommitProvisionalLoad IPC without a prior DidStartProvisionalLoad
// message.
if (!navigation_handle_) {
+ GURL filtered_url = validated_params.url;
+ GetProcess()->FilterURL(false, &filtered_url);
navigation_handle_ = NavigationHandleImpl::Create(
- validated_params.url, frame_tree_node_->IsMainFrame(),
+ validated_params.url, filtered_url, frame_tree_node_->IsMainFrame(),
frame_tree_node_->navigator()->GetDelegate());
}

Powered by Google App Engine
This is Rietveld 408576698