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

Unified Diff: components/history/core/browser/history_backend.cc

Issue 1011943003: Don't treat back/forwards as typed transitions in history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index a1fdba9652e622ae13848bb9c8f637029e95f0ab..d93982c810826b2817a22d58b693db7bb94ee499 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -731,6 +731,7 @@ std::pair<URLID, VisitID> HistoryBackend::AddPageVisit(
ui::PageTransition transition_type =
ui::PageTransitionStripQualifier(transition);
if ((transition_type == ui::PAGE_TRANSITION_TYPED &&
+ ui::PageTransitionIsNewNavigation(transition) &&
!ui::PageTransitionIsRedirect(transition)) ||
transition_type == ui::PAGE_TRANSITION_KEYWORD_GENERATED)
typed_increment = 1;

Powered by Google App Engine
This is Rietveld 408576698