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

Unified Diff: content/browser/loader/navigation_resource_throttle.cc

Issue 2475693002: Do not reset NavigationHandle when navigating same-page (Closed)
Patch Set: Rebase + removed DCHECK Created 4 years, 1 month 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/loader/navigation_resource_throttle.cc
diff --git a/content/browser/loader/navigation_resource_throttle.cc b/content/browser/loader/navigation_resource_throttle.cc
index 41ace38b7b1c1f7f18236becf22035955da49486..e8f9e6ed25b47782c18c8d174c31ec3cc3f92e7e 100644
--- a/content/browser/loader/navigation_resource_throttle.cc
+++ b/content/browser/loader/navigation_resource_throttle.cc
@@ -81,11 +81,9 @@ NavigationHandleImpl* FindNavigationHandle(
}
NavigationHandleImpl* navigation_handle =
- render_frame_host->frame_tree_node()
- ->navigator()
- ->GetNavigationHandleForFrameHost(render_frame_host);
+ render_frame_host->navigation_handle();
if (!navigation_handle) {
- SendCheckResultToIOThread(callback, NavigationThrottle::PROCEED);
+ SendCheckResultToIOThread(callback, NavigationThrottle::CANCEL);
return nullptr;
}
return navigation_handle;

Powered by Google App Engine
This is Rietveld 408576698