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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.cc

Issue 2854423002: [omnibox] Use suggestion instead of input for base text (Closed)
Patch Set: Remove redundant class 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: chrome/browser/ui/views/omnibox/omnibox_result_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
index 87902bb5f48a65fae90d1cdadc908cd4206cfee3..1fe1bfda5823d82cca071bce8d1d26a631b88fb8 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
@@ -547,8 +547,8 @@ int OmniboxResultView::GetDisplayOffset(
if (match.type != AutocompleteMatchType::SEARCH_SUGGEST_TAIL)
return 0;
- const base::string16& input_text =
- base::UTF8ToUTF16(match.GetAdditionalInfo(kACMatchPropertyInputText));
+ const base::string16& input_text = base::UTF8ToUTF16(
+ match.GetAdditionalInfo(kACMatchPropertySuggestionText));
int contents_start_index = 0;
base::StringToInt(match.GetAdditionalInfo(kACMatchPropertyContentsStartIndex),
&contents_start_index);
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm ('k') | components/omnibox/browser/autocomplete_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698