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

Unified Diff: views/controls/textfield/native_textfield_views.cc

Issue 7826039: Identify the omnibox as a URL field. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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: views/controls/textfield/native_textfield_views.cc
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index 47ff3029bb754c2d69777a3fce748911e5744f9f..ac4fc63903f58d5abfe0c9886c4ba704a6a9d48a 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -704,6 +704,8 @@ ui::TextInputType NativeTextfieldViews::GetTextInputType() {
return ui::TEXT_INPUT_TYPE_NONE;
else if (textfield_->IsPassword())
return ui::TEXT_INPUT_TYPE_PASSWORD;
+ else if (textfield_->IsUrl())
+ return ui::TEXT_INPUT_TYPE_URL;
return ui::TEXT_INPUT_TYPE_TEXT;
}

Powered by Google App Engine
This is Rietveld 408576698