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

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 15517007: Change InstantAutocompleteResult::Type to be AutocompleteMatchType::Type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comment. Created 7 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 | « no previous file | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 2c2fbd7d05e34b36e5556793830fd67ce6a3b291..c14289eee7cc9c97a586973bf34adf658f3ab8b7 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1823,7 +1823,7 @@ void InstantController::PopulateInstantAutocompleteResultFromMatch(
InstantAutocompleteResult* result) {
DCHECK(result);
result->provider = UTF8ToUTF16(match.provider->GetName());
- result->type = UTF8ToUTF16(AutocompleteMatchType::ToString(match.type));
+ result->type = match.type;
result->description = match.description;
result->destination_url = UTF8ToUTF16(match.destination_url.spec());
@@ -1836,7 +1836,8 @@ void InstantController::PopulateInstantAutocompleteResultFromMatch(
result->relevance = match.relevance;
result->autocomplete_match_index = autocomplete_match_index;
- DVLOG(1) << " " << result->relevance << " " << result->type << " "
+ DVLOG(1) << " " << result->relevance << " "
+ << UTF8ToUTF16(AutocompleteMatchType::ToString(result->type)) << " "
<< result->provider << " " << result->destination_url << " '"
<< result->description << "' '" << result->search_query << "' "
<< result->transition << " " << result->autocomplete_match_index;
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698