| Index: chrome/browser/autocomplete/shortcuts_provider.cc
|
| diff --git a/chrome/browser/autocomplete/shortcuts_provider.cc b/chrome/browser/autocomplete/shortcuts_provider.cc
|
| index 106cf1c68c992f777d08711d934d559a6b0acf15..3c1633d83ac85f909879135a3065a481a854d12d 100644
|
| --- a/chrome/browser/autocomplete/shortcuts_provider.cc
|
| +++ b/chrome/browser/autocomplete/shortcuts_provider.cc
|
| @@ -67,17 +67,15 @@ ShortcutsProvider::ShortcutsProvider(Profile* profile)
|
| }
|
|
|
| void ShortcutsProvider::Start(const AutocompleteInput& input,
|
| - bool minimal_changes) {
|
| + bool minimal_changes,
|
| + bool called_due_to_focus) {
|
| matches_.clear();
|
|
|
| - if ((input.type() == metrics::OmniboxInputType::INVALID) ||
|
| - (input.type() == metrics::OmniboxInputType::FORCED_QUERY))
|
| - return;
|
| -
|
| - if (input.text().empty())
|
| - return;
|
| -
|
| - if (!initialized_)
|
| + if (called_due_to_focus ||
|
| + (input.type() == metrics::OmniboxInputType::INVALID) ||
|
| + (input.type() == metrics::OmniboxInputType::FORCED_QUERY) ||
|
| + input.text().empty() ||
|
| + !initialized_)
|
| return;
|
|
|
| base::TimeTicks start_time = base::TimeTicks::Now();
|
|
|