diff options
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.cc')
-rw-r--r-- | chrome/browser/autocomplete/search_provider.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc index 1dae40a..11a335b 100644 --- a/chrome/browser/autocomplete/search_provider.cc +++ b/chrome/browser/autocomplete/search_provider.cc @@ -815,10 +815,7 @@ void SearchProvider::AddMatchToMap(const string16& query_string, bool is_keyword, bool prevent_inline_autocomplete, MatchMap* map) { - // TODO(dominich): Confidence. In this case, the confidence must depend on the - // source. Scored terms can be calculated based on score, but other sources - // need more care. Eg, suggest. - AutocompleteMatch match(this, relevance, 0.0f, false, type); + AutocompleteMatch match(this, relevance, false, type); std::vector<size_t> content_param_offsets; const TemplateURL& provider = is_keyword ? providers_.keyword_provider() : providers_.default_provider(); @@ -916,8 +913,7 @@ AutocompleteMatch SearchProvider::NavigationToMatch( bool is_keyword) { const string16& input_text = is_keyword ? keyword_input_text_ : input_.text(); - // TODO(dominich): Confidence calculation. - AutocompleteMatch match(this, relevance, 0.0f, false, + AutocompleteMatch match(this, relevance, false, AutocompleteMatch::NAVSUGGEST); match.destination_url = navigation.url; match.contents = |