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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 1214073005: Remove NAVIGATION_TYPE_IN_PAGE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: didreplace Created 5 years, 5 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/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index 6546c600c359bdb07ca731e4675fceca9edc2332..5381a68ed0968aa1c9040b9eae6cb958421b1672 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -490,14 +490,10 @@ void PresentationServiceImpl::DidNavigateAnyFrame(
// If a frame navigation is in-page (e.g. navigating to a fragment in
// same page) then we do not unregister listeners.
- bool in_page_navigation = details.is_in_page ||
- details.type == content::NAVIGATION_TYPE_IN_PAGE;
-
DVLOG(2) << "DidNavigateAnyFrame: "
- << "prev host: " << prev_url_host << ", curr host: " << curr_url_host
- << ", in_page_navigation: " << in_page_navigation;
-
- if (in_page_navigation)
+ << "prev host: " << prev_url_host << ", curr host: " << curr_url_host
+ << ", details.is_in_page: " << details.is_in_page;
+ if (details.is_in_page)
return;
// Reset if the frame actually navigated.

Powered by Google App Engine
This is Rietveld 408576698