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

Unified Diff: ui/views/examples/textfield_example.cc

Issue 8748001: Make text input type and password visibility bit independent in Textfield (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Textfield(STYLE_OBSCURED) sets TEXT_INPUT_TYPE_PASSWORD Created 9 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: ui/views/examples/textfield_example.cc
diff --git a/ui/views/examples/textfield_example.cc b/ui/views/examples/textfield_example.cc
index 7b4986c650dba522e0dcf7121f2f3f50a948013a..1d7c878cbf90d7f0d3dc26fdc78c342dad050391 100644
--- a/ui/views/examples/textfield_example.cc
+++ b/ui/views/examples/textfield_example.cc
@@ -23,7 +23,7 @@ TextfieldExample::~TextfieldExample() {
void TextfieldExample::CreateExampleView(View* container) {
name_ = new Textfield();
- password_ = new Textfield(Textfield::STYLE_PASSWORD);
+ password_ = new Textfield(Textfield::STYLE_OBSCURED);
password_->set_text_to_display_when_empty(ASCIIToUTF16("password"));
show_password_ = new TextButton(this, ASCIIToUTF16("Show password"));
clear_all_ = new TextButton(this, ASCIIToUTF16("Clear All"));

Powered by Google App Engine
This is Rietveld 408576698