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

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

Issue 7607007: Add confidence to AutocompleteMatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to pkasting 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/autocomplete/shortcuts_provider.cc
diff --git a/chrome/browser/autocomplete/shortcuts_provider.cc b/chrome/browser/autocomplete/shortcuts_provider.cc
index c8caaf1f710d28b4df2b015eb600513eff8cea3e..6991c678463b42bccf546b6d5bd44814fbf4bbb0 100644
--- a/chrome/browser/autocomplete/shortcuts_provider.cc
+++ b/chrome/browser/autocomplete/shortcuts_provider.cc
@@ -183,7 +183,9 @@ AutocompleteMatch ShortcutsProvider::ShortcutToACMatch(
const AutocompleteInput& input,
const string16& term_string,
ShortcutMap::iterator it) {
- AutocompleteMatch match(this, CalculateScore(term_string, it->second),
+ // TODO(dominich): Use the same score calculation for confidence and
+ // relevance.
+ AutocompleteMatch match(this, CalculateScore(term_string, it->second), 0.0f,
true, AutocompleteMatch::HISTORY_TITLE);
match.destination_url = it->second.url;
DCHECK(match.destination_url.is_valid());

Powered by Google App Engine
This is Rietveld 408576698