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

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

Issue 2854423002: [omnibox] Use suggestion instead of input for base text (Closed)
Patch Set: Rename 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
« no previous file with comments | « components/omnibox/browser/autocomplete_match.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
Peter Kasting 2017/05/06 20:13:07 Is this the right name for this? It seems like su
Kevin Bailey 2017/05/06 21:55:01 I could work 'suggestion' into the name if you lik
Peter Kasting 2017/05/10 20:38:11 I think that's why I'm worried about this -- this
Kevin Bailey 2017/05/11 13:27:37 Done.
+ base::UTF16ToUTF8(suggestion.suggestion()));
match.RecordAdditionalInfo(
kACMatchPropertyContentsPrefix,
base::UTF16ToUTF8(suggestion.match_contents_prefix()));
« no previous file with comments | « components/omnibox/browser/autocomplete_match.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698