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

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

Issue 2846673006: Omnibox: Make InMemoryURLIndex respect hidden URLRows (Closed)
Patch Set: address mpearson comments Created 3 years, 8 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/url_database.cc
diff --git a/components/history/core/browser/url_database.cc b/components/history/core/browser/url_database.cc
index 248ecf47d865bd0944aad9a375fd9fa7f433977e..0c08d4b9d62835e220abcdb9fd65b1aae624ac24 100644
--- a/components/history/core/browser/url_database.cc
+++ b/components/history/core/browser/url_database.cc
@@ -639,6 +639,9 @@ base::Time AutocompleteAgeThreshold() {
bool RowQualifiesAsSignificant(const URLRow& row,
const base::Time& threshold) {
+ if (row.hidden())
+ return false;
+
const base::Time& real_threshold =
threshold.is_null() ? AutocompleteAgeThreshold() : threshold;
return (row.typed_count() >= kLowQualityMatchTypedLimit) ||

Powered by Google App Engine
This is Rietveld 408576698