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

Unified Diff: content/browser/web_contents/web_contents_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: Addressed comments Created 5 years, 3 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 7d03dc1e3299e3e67fcd20ccdb651621e6f66d2f..da56269335b6f2bb8b7022ade678bcd68d2ff4a3 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2786,6 +2786,7 @@ void WebContentsImpl::SetFocusToLocationBar(bool select_all) {
}
void WebContentsImpl::DidStartNavigation(NavigationHandle* navigation_handle) {
+ static_cast<NavigationHandleImpl*>(navigation_handle)->set_web_contents(this);
FOR_EACH_OBSERVER(WebContentsObserver, observers_,
DidStartNavigation(navigation_handle));
}

Powered by Google App Engine
This is Rietveld 408576698