| Index: chrome/browser/autocomplete/autocomplete_match.cc
|
| diff --git a/chrome/browser/autocomplete/autocomplete_match.cc b/chrome/browser/autocomplete/autocomplete_match.cc
|
| index 4d04019761b178c6218c530cbd411e88a4a4a407..9784dd6893d4921556cfcfd4561262a7ca3b874e 100644
|
| --- a/chrome/browser/autocomplete/autocomplete_match.cc
|
| +++ b/chrome/browser/autocomplete/autocomplete_match.cc
|
| @@ -338,11 +338,16 @@ bool AutocompleteMatch::IsSearchType(Type type) {
|
| return type == AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED ||
|
| type == AutocompleteMatchType::SEARCH_HISTORY ||
|
| type == AutocompleteMatchType::SEARCH_SUGGEST ||
|
| - type == AutocompleteMatchType::SEARCH_SUGGEST_ENTITY ||
|
| + type == AutocompleteMatchType::SEARCH_OTHER_ENGINE ||
|
| + IsSpecializedSearchType(type);
|
| +}
|
| +
|
| +// static
|
| +bool AutocompleteMatch::IsSpecializedSearchType(Type type) {
|
| + return type == AutocompleteMatchType::SEARCH_SUGGEST_ENTITY ||
|
| type == AutocompleteMatchType::SEARCH_SUGGEST_INFINITE ||
|
| type == AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED ||
|
| - type == AutocompleteMatchType::SEARCH_SUGGEST_PROFILE ||
|
| - type == AutocompleteMatchType::SEARCH_OTHER_ENGINE;
|
| + type == AutocompleteMatchType::SEARCH_SUGGEST_PROFILE;
|
| }
|
|
|
| void AutocompleteMatch::ComputeStrippedDestinationURL(Profile* profile) {
|
|
|