| Index: components/omnibox/search_provider.cc
|
| diff --git a/components/omnibox/search_provider.cc b/components/omnibox/search_provider.cc
|
| index 93cb059b5db8ece6c964d2529bab7cef101d45ad..2c3f9deb4686d5418208cc0dc84fe7ffd8c214ca 100644
|
| --- a/components/omnibox/search_provider.cc
|
| +++ b/components/omnibox/search_provider.cc
|
| @@ -189,7 +189,8 @@ ACMatches::iterator SearchProvider::FindTopMatch(ACMatches* matches) {
|
| }
|
|
|
| void SearchProvider::Start(const AutocompleteInput& input,
|
| - bool minimal_changes) {
|
| + bool minimal_changes,
|
| + bool on_focus) {
|
| // Do our best to load the model as early as possible. This will reduce
|
| // odds of having the model not ready when really needed (a non-empty input).
|
| TemplateURLService* model = providers_.template_url_service();
|
| @@ -200,7 +201,7 @@ void SearchProvider::Start(const AutocompleteInput& input,
|
| field_trial_triggered_ = false;
|
|
|
| // Can't return search/suggest results for bogus input.
|
| - if (input.type() == metrics::OmniboxInputType::INVALID) {
|
| + if (on_focus || input.type() == metrics::OmniboxInputType::INVALID) {
|
| Stop(true);
|
| return;
|
| }
|
|
|