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 ff46dd8c34b1032a78050d742cfe70eacf79389e..d9f7e392d4fc3f43d7827c1475e25728f7d52560 100644 |
--- a/components/history/core/browser/history_backend.cc |
+++ b/components/history/core/browser/history_backend.cc |
@@ -355,7 +355,9 @@ SegmentID HistoryBackend::UpdateSegments(const GURL& url, |
ui::PAGE_TRANSITION_TYPED) || |
ui::PageTransitionCoreTypeIs(transition_type, |
ui::PAGE_TRANSITION_AUTO_BOOKMARK)) && |
- (transition_type & ui::PAGE_TRANSITION_FORWARD_BACK) == 0) { |
+ (transition_type & ui::PAGE_TRANSITION_FORWARD_BACK) == 0 && |
+ (transition_type & ui::PAGE_TRANSITION_IGNORE_FOR_NTP_MOST_VISITED) == |
+ 0) { |
// If so, create or get the segment. |
std::string segment_name = db_->ComputeSegmentName(url); |
URLID url_id = db_->GetRowForURL(url, nullptr); |