Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: chrome/browser/autocomplete/zero_suggest_provider.cc

Issue 820063002: Add support for providers called when the omnibox is focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/zero_suggest_provider.cc
diff --git a/chrome/browser/autocomplete/zero_suggest_provider.cc b/chrome/browser/autocomplete/zero_suggest_provider.cc
index efa39c39f3cf2d5e3ffd0b7adb858364802beb74..436f7b61666d12d0290a26f0fa222af76c52b57f 100644
--- a/chrome/browser/autocomplete/zero_suggest_provider.cc
+++ b/chrome/browser/autocomplete/zero_suggest_provider.cc
@@ -153,7 +153,7 @@ void ZeroSuggestProvider::Stop(bool clear_cached_results) {
if (clear_cached_results) {
// We do not call Clear() on |results_| to retain |verbatim_relevance|
// value in the |results_| object. |verbatim_relevance| is used at the
- // beginning of the next StartZeroSuggest() call to determine the current
+ // beginning of the next OnOmniboxFocused() call to determine the current
// url match relevance.
results_.suggest_results.clear();
results_.navigation_results.clear();
@@ -177,6 +177,10 @@ void ZeroSuggestProvider::AddProviderInfo(ProvidersInfo* provider_info) const {
provider_info->back().set_times_returned_results_in_session(1);
}
+bool ZeroSuggestProvider::ProvidesMatchesOnOmniboxFocus() const {
+ return true;
+}
+
void ZeroSuggestProvider::ResetSession() {
// The user has started editing in the omnibox, so leave
// |field_trial_triggered_in_session_| unchanged and set
« no previous file with comments | « chrome/browser/autocomplete/zero_suggest_provider.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698