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

Unified Diff: chrome/browser/android/omnibox/autocomplete_controller_android.cc

Issue 2604243002: Add Physical Web omnibox support for Android (Closed)
Patch Set: Remove comments change 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 | chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/omnibox/autocomplete_controller_android.cc
diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.cc b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
index 0fa26a4a116c6a39ae3feb54e16dad4742b4d51c..ec11a572e4a697ba816ccd04c31464dcccc3c142 100644
--- a/chrome/browser/android/omnibox/autocomplete_controller_android.cc
+++ b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
@@ -185,7 +185,9 @@ void AutocompleteControllerAndroid::OnOmniboxFocused(
// If omnibox text is empty, set it to the current URL for the purposes of
// populating the verbatim match.
- if (omnibox_text.empty())
+ if (omnibox_text.empty() &&
+ !current_url.SchemeIs(content::kChromeUIScheme) &&
+ !current_url.SchemeIs(chrome::kChromeUINativeScheme))
omnibox_text = url;
input_ = AutocompleteInput(
« no previous file with comments | « no previous file | chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698