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

Unified Diff: components/history/core/browser/expire_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/expire_history_backend.cc
diff --git a/components/history/core/browser/expire_history_backend.cc b/components/history/core/browser/expire_history_backend.cc
index e115f84eeead8f54f81c07e9ec2737321d499022..e8e2f4402526741aa1ce989246b95d3a68ffc07b 100644
--- a/components/history/core/browser/expire_history_backend.cc
+++ b/components/history/core/browser/expire_history_backend.cc
@@ -394,6 +394,7 @@ void ExpireHistoryBackend::ExpireURLsForVisits(const VisitVector& visits,
if (transition != ui::PAGE_TRANSITION_RELOAD)
cur.visit_count++;
if ((transition == ui::PAGE_TRANSITION_TYPED &&
+ ui::PageTransitionIsNewNavigation(visits[i].transition) &&
!ui::PageTransitionIsRedirect(visits[i].transition)) ||
transition == ui::PAGE_TRANSITION_KEYWORD_GENERATED)
cur.typed_count++;

Powered by Google App Engine
This is Rietveld 408576698