| 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 0b5cd4cb274bae1b9f05b4661974bc46789bc720..f20c78a3a32e237b7c5c99ced4ef8bbd9af7e1c9 100644
|
| --- a/chrome/browser/ui/search/instant_controller.cc
|
| +++ b/chrome/browser/ui/search/instant_controller.cc
|
| @@ -592,8 +592,12 @@ void InstantController::HandleAutocompleteResults(
|
| result.type = UTF8ToUTF16(AutocompleteMatch::TypeToString(match->type));
|
| result.description = match->description;
|
| result.destination_url = UTF8ToUTF16(match->destination_url.spec());
|
| - if (from_search_provider)
|
| +
|
| + // Setting the search_query field tells the Instant page to treat the
|
| + // suggestion as a query.
|
| + if (AutocompleteMatch::IsSearchType(match->type))
|
| result.search_query = match->contents;
|
| +
|
| result.transition = match->transition;
|
| result.relevance = match->relevance;
|
| DVLOG(1) << " " << result.relevance << " " << result.type << " "
|
|
|