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

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

Issue 327003003: [AiS] Add a new AutocompleteMatchType for Answers in Suggest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 6911e44bd07ac8a03ee2715575240a3b4e46e422..0d101c86719d61a8a17356465ad66c7ae736add2 100644
--- a/chrome/browser/autocomplete/autocomplete_match.cc
+++ b/chrome/browser/autocomplete/autocomplete_match.cc
@@ -157,6 +157,7 @@ int AutocompleteMatch::TypeToIcon(Type type) {
IDR_OMNIBOX_SEARCH,
IDR_OMNIBOX_HTTP,
IDR_OMNIBOX_HTTP,
+ IDR_OMNIBOX_SEARCH,
};
COMPILE_ASSERT(arraysize(icons) == AutocompleteMatchType::NUM_TYPES,
icons_array_must_match_type_enum);
@@ -339,7 +340,8 @@ 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_SUGGEST_PROFILE ||
+ type == AutocompleteMatchType::SEARCH_SUGGEST_ANSWER;
Peter Kasting 2014/06/10 21:49:46 The effect of putting this here will be that the S
Justin Donnelly 2014/06/11 15:51:53 Well, hitting enter on an Answer for "foo" will, i
Peter Kasting 2014/06/11 17:02:02 The alternative is that you get back a match exact
}
void AutocompleteMatch::ComputeStrippedDestinationURL(Profile* profile) {

Powered by Google App Engine
This is Rietveld 408576698