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

Unified Diff: chrome/browser/autocomplete/history_quick_provider.cc

Issue 7314018: Don't autocomplete searches of >1 word if they've only been visited once and the user has not yet... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/autocomplete/history_quick_provider.cc
===================================================================
--- chrome/browser/autocomplete/history_quick_provider.cc (revision 92729)
+++ chrome/browser/autocomplete/history_quick_provider.cc (working copy)
@@ -32,9 +32,6 @@
using history::ScoredHistoryMatch;
using history::ScoredHistoryMatches;
-// The initial maximum allowable score for a match which cannot be inlined.
-const int kMaxNonInliningScore = 1199;
-
HistoryQuickProvider::HistoryQuickProvider(ACProviderListener* listener,
Profile* profile)
: HistoryProvider(listener, profile, "HistoryQuickProvider"),
@@ -123,6 +120,10 @@
}
}
+// static
+const int HistoryQuickProvider::kMaxNonInliningScore =
+ AutocompleteResult::kLowestDefaultScore - 1;
+
AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
const ScoredHistoryMatch& history_match,
bool prevent_inline_autocomplete,

Powered by Google App Engine
This is Rietveld 408576698