Chromium Code Reviews| 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..0c74d92e13a704ead0659d71b3117ed5c574583e 100644 |
| --- a/chrome/browser/autocomplete/shortcuts_provider.cc |
| +++ b/chrome/browser/autocomplete/shortcuts_provider.cc |
| @@ -67,9 +67,13 @@ ShortcutsProvider::ShortcutsProvider(Profile* profile) |
| } |
| void ShortcutsProvider::Start(const AutocompleteInput& input, |
| - bool minimal_changes) { |
| + bool minimal_changes, |
| + bool on_focus) { |
| matches_.clear(); |
| + if (on_focus) |
|
Peter Kasting
2015/01/07 20:16:36
Nit: I would just combine all these conditions her
Maria
2015/01/08 07:52:38
Done.
|
| + return; |
| + |
| if ((input.type() == metrics::OmniboxInputType::INVALID) || |
| (input.type() == metrics::OmniboxInputType::FORCED_QUERY)) |
| return; |