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..42d7a80c0cc20d82ce1aaf625321657aa3eb979e 100644 |
--- a/chrome/browser/autocomplete/autocomplete_match.cc |
+++ b/chrome/browser/autocomplete/autocomplete_match.cc |
@@ -345,6 +345,14 @@ bool AutocompleteMatch::IsSearchType(Type type) { |
type == AutocompleteMatchType::SEARCH_OTHER_ENGINE; |
Peter Kasting
2014/03/21 18:36:26
Nit: Can simplify by removing everything covered b
Anuj
2014/03/24 07:16:16
Done.
|
} |
+// static |
+bool AutocompleteMatch::IsSearchSuggestType(Type type) { |
+ return type == AutocompleteMatchType::SEARCH_SUGGEST_ENTITY || |
+ type == AutocompleteMatchType::SEARCH_SUGGEST_INFINITE || |
+ type == AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED || |
+ type == AutocompleteMatchType::SEARCH_SUGGEST_PROFILE; |
+} |
+ |
void AutocompleteMatch::ComputeStrippedDestinationURL(Profile* profile) { |
stripped_destination_url = destination_url; |
if (!stripped_destination_url.is_valid()) |