Chromium Code Reviews| Index: chrome/browser/autocomplete/history_url_provider.cc |
| diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc |
| index 61eceda8b345109719c6c0082b39ce99a62e8d8d..b1562f4f4dab92291a9b9224bbb11b072c2e7580 100644 |
| --- a/chrome/browser/autocomplete/history_url_provider.cc |
| +++ b/chrome/browser/autocomplete/history_url_provider.cc |
| @@ -769,7 +769,8 @@ void HistoryURLProvider::DoAutocomplete(history::HistoryBackend* backend, |
| ((params->input.type() != metrics::OmniboxInputType::UNKNOWN) || |
| (classifier.type() == VisitClassifier::UNVISITED_INTRANET) || |
| !params->trim_http || |
| - (AutocompleteInput::NumNonHostComponents(params->input.parts()) > 0)); |
| + (AutocompleteInput::NumNonHostComponents(params->input.parts()) > 0) || |
| + (params->default_search_provider == NULL)); |
|
Peter Kasting
2014/10/24 01:10:07
Nit: Just do
!params->default_search_provid
|
| const bool have_shorter_suggestion_suitable_for_inline_autocomplete = |
| PromoteOrCreateShorterSuggestion( |
| db, params->have_what_you_typed_match, params); |