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

Unified Diff: components/omnibox/browser/physical_web_provider.cc

Issue 2657473003: Show Physical Web zero-suggest omnibox suggestions after query is deleted (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | components/omnibox/browser/physical_web_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/physical_web_provider.cc
diff --git a/components/omnibox/browser/physical_web_provider.cc b/components/omnibox/browser/physical_web_provider.cc
index 4159ee1e2d8cf297c9d3679b02f39b0d5be77a97..5cb0fe47bb43eb36d1e8917c4d612876511b745b 100644
--- a/components/omnibox/browser/physical_web_provider.cc
+++ b/components/omnibox/browser/physical_web_provider.cc
@@ -75,7 +75,7 @@ void PhysicalWebProvider::Start(const AutocompleteInput& input,
return;
}
- if (input.from_omnibox_focus()) {
+ if (input.from_omnibox_focus() || input.text().empty()) {
ConstructZeroSuggestMatches(data_source->GetMetadataList());
if (!matches_.empty()) {
« no previous file with comments | « no previous file | components/omnibox/browser/physical_web_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698