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

Unified Diff: content/browser/frame_host/navigator_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/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index b2be362dfb61d9b6904098078d4c62f5f2c1cbc6..8e2ccf271256fc0fd2f9a49e8c7d81580d08c9d3 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -158,8 +158,10 @@ void NavigatorImpl::DidStartProvisionalLoad(
render_frame_host->SetNavigationHandle(scoped_ptr<NavigationHandleImpl>());
}
- render_frame_host->SetNavigationHandle(
- NavigationHandleImpl::Create(url, is_main_frame, delegate_));
+ GURL filtered_url = url;
+ render_frame_host->GetProcess()->FilterURL(false, &filtered_url);
+ render_frame_host->SetNavigationHandle(NavigationHandleImpl::Create(
+ url, filtered_url, is_main_frame, delegate_));
nasko 2015/08/31 23:25:15 Why do we need both? We never keep the two around
clamy 2015/09/03 15:30:51 We need to provide the filtered url to the throttl
nasko 2015/09/04 23:36:49 Where do we do those checks? Why can't we frontloa
}
void NavigatorImpl::DidFailProvisionalLoadWithError(

Powered by Google App Engine
This is Rietveld 408576698