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

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

Issue 2376643002: Clean up NavigationControllerImpl::IsURLInPageNavigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up NavigationControllerImpl::IsURLInPageNavigation Created 4 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/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index c0ddb1b926e0af03b8758c235c8e8a4026164be5..4466dab2ceac18a10488eb60bcbf483eef58544b 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -772,7 +772,8 @@ bool NavigationControllerImpl::PendingEntryMatchesHandle(
bool NavigationControllerImpl::RendererDidNavigate(
RenderFrameHostImpl* rfh,
const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
- LoadCommittedDetails* details) {
+ LoadCommittedDetails* details,
+ bool is_navigation_within_page) {
is_initial_navigation_ = false;
// Save the previous state before we clobber it.
@@ -799,8 +800,7 @@ bool NavigationControllerImpl::RendererDidNavigate(
details->type = ClassifyNavigation(rfh, params);
// is_in_page must be computed before the entry gets committed.
- details->is_in_page = IsURLInPageNavigation(params.url, params.origin,
- params.was_within_same_page, rfh);
+ details->is_in_page = is_navigation_within_page;
switch (details->type) {
case NAVIGATION_TYPE_NEW_PAGE:
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698