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

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

Issue 285343004: [AiS] Extract Answers, store on AutocompleteMatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « chrome/browser/autocomplete/base_search_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/search_provider.cc
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index 528cde1dd2d0c16983e81b7b82cd7bba4f4a6b32..c07e27376b1d29787df56b5d632cde59f9ad9848 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -694,8 +694,9 @@ void SearchProvider::ConvertResultsToAutocompleteMatches() {
base::CollapseWhitespace(input_.text(), false);
SuggestResult verbatim(
trimmed_verbatim, AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED,
- trimmed_verbatim, base::string16(), base::string16(), std::string(),
- std::string(), false, verbatim_relevance, relevance_from_server, false,
+ trimmed_verbatim, base::string16(), base::string16(), base::string16(),
+ base::string16(), std::string(), std::string(), false,
+ verbatim_relevance, relevance_from_server, false,
trimmed_verbatim);
AddMatchToMap(verbatim, std::string(), did_not_accept_default_suggestion,
false, &map);
@@ -719,8 +720,9 @@ void SearchProvider::ConvertResultsToAutocompleteMatches() {
SuggestResult verbatim(
trimmed_verbatim, AutocompleteMatchType::SEARCH_OTHER_ENGINE,
trimmed_verbatim, base::string16(), base::string16(),
- std::string(), std::string(), true, keyword_verbatim_relevance,
- keyword_relevance_from_server, false, trimmed_verbatim);
+ base::string16(), base::string16(), std::string(), std::string(),
+ true, keyword_verbatim_relevance, keyword_relevance_from_server,
+ false, trimmed_verbatim);
AddMatchToMap(verbatim, std::string(),
did_not_accept_keyword_suggestion, false, &map);
}
@@ -922,8 +924,9 @@ SearchProvider::SuggestResults SearchProvider::ScoreHistoryResults(
prevent_search_history_inlining);
scored_results.push_back(SuggestResult(
trimmed_suggestion, AutocompleteMatchType::SEARCH_HISTORY,
- trimmed_suggestion, base::string16(), base::string16(), std::string(),
- std::string(), is_keyword, relevance, false, false, trimmed_input));
+ trimmed_suggestion, base::string16(), base::string16(),
+ base::string16(), base::string16(), std::string(), std::string(),
+ is_keyword, relevance, false, false, trimmed_input));
}
// History returns results sorted for us. However, we may have docked some
« no previous file with comments | « chrome/browser/autocomplete/base_search_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698