Add support for providers called when the omnibox is focused.
commit28e51b058b881eadb0829d8c31330cf85eb9251d
authorjif <jif@chromium.org>
Tue, 6 Jan 2015 14:12:21 +0000 (6 06:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 6 Jan 2015 14:12:57 +0000 (6 14:12 +0000)
tree2fd031c442facf8bb2120dda9621f92f9941244f
parent1dd37dd0e4e28c5c67151e216626594f2c48389a
Add support for providers called when the omnibox is focused.

The feature described in https://docs.google.com/document/d/1vXHSui-1QYjemBHOpiLiAsIWEIoKuiw66xNcNVfUC3A/edit
requires an omnibox provider that is called when the omnibox is focused.
Right now, only the zero_suggest_provider_ can be called on focus. This CL
makes any provider returning true for |ActivatedOnOmniboxFocus| be called on
focus.

BUG=228111
TBR=miguelg

Review URL: https://codereview.chromium.org/820063002

Cr-Commit-Position: refs/heads/master@{#310085}
chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
chrome/browser/android/omnibox/autocomplete_controller_android.cc
chrome/browser/android/omnibox/autocomplete_controller_android.h
chrome/browser/autocomplete/autocomplete_controller.cc
chrome/browser/autocomplete/autocomplete_controller.h
chrome/browser/autocomplete/zero_suggest_provider.cc
chrome/browser/autocomplete/zero_suggest_provider.h
chrome/browser/ui/omnibox/omnibox_edit_model.cc
components/omnibox/autocomplete_provider.cc
components/omnibox/autocomplete_provider.h