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

Unified Diff: chrome/browser/autocomplete/autocomplete_match.cc

Issue 165163002: Handle Search suggest subtypes for Shortcuts DB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on refactoring Created 6 years, 9 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/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())

Powered by Google App Engine
This is Rietveld 408576698