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

Unified Diff: components/omnibox/browser/base_search_provider.cc

Issue 2854423002: [omnibox] Use suggestion instead of input for base text (Closed)
Patch Set: Better name Created 3 years, 7 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: components/omnibox/browser/base_search_provider.cc
diff --git a/components/omnibox/browser/base_search_provider.cc b/components/omnibox/browser/base_search_provider.cc
index 51e9d5b5c8c3ab7d461493d0300122bd254275ac..eea0710c99426f1e79534bf61a9c369d00306ddf 100644
--- a/components/omnibox/browser/base_search_provider.cc
+++ b/components/omnibox/browser/base_search_provider.cc
@@ -253,8 +253,8 @@ AutocompleteMatch BaseSearchProvider::CreateSearchSuggestion(
match.answer = SuggestionAnswer::copy(suggestion.answer());
match.subtype_identifier = suggestion.subtype_identifier();
if (suggestion.type() == AutocompleteMatchType::SEARCH_SUGGEST_TAIL) {
- match.RecordAdditionalInfo(
- kACMatchPropertyInputText, base::UTF16ToUTF8(input.text()));
+ match.RecordAdditionalInfo(kACMatchPropertyContentsText,
+ base::UTF16ToUTF8(suggestion.suggestion()));
match.RecordAdditionalInfo(
kACMatchPropertyContentsPrefix,
base::UTF16ToUTF8(suggestion.match_contents_prefix()));

Powered by Google App Engine
This is Rietveld 408576698