| 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 c87a71bd2dd110b763dd113b20488984c263d180..ecf833753fb78756ffba4d1e3e4070eee79b8e12 100644
|
| --- a/chrome/browser/autocomplete/history_url_provider.cc
|
| +++ b/chrome/browser/autocomplete/history_url_provider.cc
|
| @@ -481,7 +481,8 @@ HistoryURLProvider::HistoryURLProvider(AutocompleteProviderListener* listener,
|
| }
|
|
|
| void HistoryURLProvider::Start(const AutocompleteInput& input,
|
| - bool minimal_changes) {
|
| + bool minimal_changes,
|
| + bool on_focus) {
|
| // NOTE: We could try hard to do less work in the |minimal_changes| case
|
| // here; some clever caching would let us reuse the raw matches from the
|
| // history DB without re-querying. However, we'd still have to go back to
|
| @@ -496,7 +497,7 @@ void HistoryURLProvider::Start(const AutocompleteInput& input,
|
|
|
| matches_.clear();
|
|
|
| - if ((input.type() == metrics::OmniboxInputType::INVALID) ||
|
| + if (on_focus || (input.type() == metrics::OmniboxInputType::INVALID) ||
|
| (input.type() == metrics::OmniboxInputType::FORCED_QUERY))
|
| return;
|
|
|
|
|