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

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

Issue 9117012: Rename visual style "password" to "obscured" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 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 | « ui/views/controls/textfield/textfield_views_model_unittest.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e018581ea5708d74ce5baea4dbdd5580eec37a8f 100644
--- a/ui/views/examples/textfield_example.cc
+++ b/ui/views/examples/textfield_example.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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"));
« no previous file with comments | « ui/views/controls/textfield/textfield_views_model_unittest.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698