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

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

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: Created 6 years 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.h
diff --git a/chrome/browser/autocomplete/zero_suggest_provider.h b/chrome/browser/autocomplete/zero_suggest_provider.h
index 6048c0c040920a6ca0504de99b48ecfc865d87d0..8ea66291066a0a881dda841436fda91697db8608 100644
--- a/chrome/browser/autocomplete/zero_suggest_provider.h
+++ b/chrome/browser/autocomplete/zero_suggest_provider.h
@@ -37,7 +37,7 @@ class PrefRegistrySyncable;
// Autocomplete provider for searches based on the current URL.
//
-// The controller will call StartZeroSuggest when the user focuses in the
+// The controller will call StartOnOmniboxFocus when the user focuses in the
Peter Kasting 2014/12/30 21:18:23 Nit: While here, remove "in"
jif 2014/12/31 19:02:26 Done.
// omnibox. After construction, the autocomplete controller repeatedly calls
// Start() with some user input, each time expecting to receive an updated
// set of matches.
@@ -61,6 +61,7 @@ class ZeroSuggestProvider : public BaseSearchProvider,
void Stop(bool clear_cached_results) override;
void DeleteMatch(const AutocompleteMatch& match) override;
void AddProviderInfo(ProvidersInfo* provider_info) const override;
+ bool ActivatedOnOmniboxFocus() const override;
// Sets |field_trial_triggered_| to false.
void ResetSession() override;

Powered by Google App Engine
This is Rietveld 408576698