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

Unified Diff: chrome/browser/history/history_types.cc

Issue 7618028: Tweak typed-count Usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: chrome/browser/history/history_types.cc
===================================================================
--- chrome/browser/history/history_types.cc (revision 97032)
+++ chrome/browser/history/history_types.cc (working copy)
@@ -383,7 +383,7 @@
// Autocomplete thresholds -----------------------------------------------------
const int kLowQualityMatchTypedLimit = 1;
-const int kLowQualityMatchVisitLimit = 3;
+const int kLowQualityMatchVisitLimit = 4;
const int kLowQualityMatchAgeLimitInDays = 3;
base::Time AutocompleteAgeThreshold() {
@@ -395,8 +395,8 @@
const base::Time& threshold) {
const base::Time& real_threshold =
threshold.is_null() ? AutocompleteAgeThreshold() : threshold;
- return (row.typed_count() > kLowQualityMatchTypedLimit) ||
- (row.visit_count() > kLowQualityMatchVisitLimit) ||
+ return (row.typed_count() >= kLowQualityMatchTypedLimit) ||
+ (row.visit_count() >= kLowQualityMatchVisitLimit) ||
(row.last_visit() >= real_threshold);
}

Powered by Google App Engine
This is Rietveld 408576698