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

Unified Diff: content/browser/android/web_contents_observer_proxy.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/android/web_contents_observer_proxy.cc
diff --git a/content/browser/android/web_contents_observer_proxy.cc b/content/browser/android/web_contents_observer_proxy.cc
index c4cb1b726bb65dde2cb165ab40113008b3d36d84..9d82f17f0c96cffaa3a7dc87f9e94989f285d314 100644
--- a/content/browser/android/web_contents_observer_proxy.cc
+++ b/content/browser/android/web_contents_observer_proxy.cc
@@ -133,8 +133,7 @@ void WebContentsObserverProxy::DidNavigateMainFrame(
// is actually a fragment navigation, or a history API navigation to a URL
// that would also be valid for a fragment navigation.
bool is_fragment_navigation =
- urls_same_ignoring_fragment &&
- (details.type == NAVIGATION_TYPE_IN_PAGE || details.is_in_page);
+ urls_same_ignoring_fragment && details.is_in_page;
Java_WebContentsObserverProxy_didNavigateMainFrame(
env, obj.obj(), jstring_url.obj(), jstring_base_url.obj(),
details.is_navigation_to_different_page(), is_fragment_navigation,

Powered by Google App Engine
This is Rietveld 408576698