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

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

Issue 1411543011: Omnibox: Make Keyword Provide More Generous with Matching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finish converting AddToMap() calls Created 5 years, 1 month 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/keyword_extensions_delegate_impl.cc
diff --git a/chrome/browser/autocomplete/keyword_extensions_delegate_impl.cc b/chrome/browser/autocomplete/keyword_extensions_delegate_impl.cc
index 888de25889352977c38c864c79ee02b753a32f80..fa00baaeaced72308186ca7d22256451cd89a21a 100644
--- a/chrome/browser/autocomplete/keyword_extensions_delegate_impl.cc
+++ b/chrome/browser/autocomplete/keyword_extensions_delegate_impl.cc
@@ -179,14 +179,14 @@ void KeywordExtensionsDelegateImpl::Observe(
// is true, because we wouldn't get results from the extension unless
// the full keyword had been typed.
int first_relevance = KeywordProvider::CalculateRelevance(
- input.type(), true, true, input.prefer_keyword(),
+ input.type(), true, true, true, input.prefer_keyword(),
input.allow_exact_keyword_match());
// Because these matches are async, we should never let them become the
// default match, lest we introduce race conditions in the omnibox user
// interaction.
extension_suggest_matches_.push_back(
provider_->CreateAutocompleteMatch(
- template_url, input, keyword.length(),
+ template_url, keyword.length(), input, keyword.length(),
base::UTF8ToUTF16(suggestion.content), false,
first_relevance - (i + 1)));
« no previous file with comments | « no previous file | components/omnibox/browser/keyword_provider.h » ('j') | components/search_engines/template_url_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698