Chromium Code Reviews| Index: components/omnibox/base_search_provider.cc |
| diff --git a/components/omnibox/base_search_provider.cc b/components/omnibox/base_search_provider.cc |
| index a18b66c2e26c79041a53e8865af383cdfdb94f4d..7cb5837eae3edb66963d062529355d3c2ad37048 100644 |
| --- a/components/omnibox/base_search_provider.cc |
| +++ b/components/omnibox/base_search_provider.cc |
| @@ -222,8 +222,13 @@ AutocompleteMatch BaseSearchProvider::CreateSearchSuggestion( |
| suggestion.suggestion().length() - match.contents.length())); |
| } |
| - if (!suggestion.annotation().empty()) |
| + if (!suggestion.annotation().empty()) { |
| match.description = suggestion.annotation(); |
| + ACMatchClassifications classifications; |
| + classifications.push_back( |
| + ACMatchClassification(0, ACMatchClassification::DIM)); |
|
Peter Kasting
2015/02/09 23:46:43
Why is this DIM instead of NONE like most descript
Maria
2015/02/10 01:13:28
I was under impression that DIM allowed descriptio
Peter Kasting
2015/02/10 01:28:51
Yeah, descriptions are auto-dimmed. We probably w
|
| + match.description_class = classifications; |
|
Peter Kasting
2015/02/09 23:46:43
Nit: Simpler:
AutocompleteMatch::AddLastClassif
Maria
2015/02/10 01:13:28
Done.
|
| + } |
| // suggestion.match_contents() should have already been collapsed. |
| match.allowed_to_be_default_match = |