commit | abf577a725e9b5e4b7f12f998b55821433ecdebc | [log] [tgz] |
---|---|---|
author | Orin Jaworski <[email protected]> | Fri Nov 09 02:23:24 2018 |
committer | Commit Bot <[email protected]> | Fri Nov 09 02:23:24 2018 |
tree | e8076dcbb54560608b6d79c4d2c9c3949acaf163 | |
parent | db889e10709b97c8e0c872e167cef871147afcdb [diff] [blame] |
[omnibox] Connect PedalProvider to AutocompleteClientProvider Some Pedals need to be filtered by application state regardless of whether a query suggestion triggers the Pedal suggestion, and to do this requires a context that can inform the Pedal system during autocomplete time (as opposed to the later execution time). AutocompleteClientProvider is the abstract base class for this purpose, and works well, so it is used by this CL for the first instance of Pedal filtering: the UpdateChrome Pedal is filtered when no update is ready. Bug: 893183 Change-Id: I3344b26600188c0c952ea81dba1e90a6b4133318 Reviewed-on: https://chromium-review.googlesource.com/c/1297587 Commit-Queue: Orin Jaworski <[email protected]> Reviewed-by: Greg Thompson <[email protected]> Reviewed-by: Justin Donnelly <[email protected]> Cr-Commit-Position: refs/heads/master@{#606701}
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h index 23e917a..847f36551 100644 --- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h +++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h
@@ -74,6 +74,7 @@ AutocompleteController* controller) override; bool IsTabOpenWithURL(const GURL& url, const AutocompleteInput* input) override; + bool IsBrowserUpdateAvailable() const override; // For testing. void set_storage_partition(content::StoragePartition* storage_partition) {