summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/login
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 23:30:24 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 23:30:24 +0000
commite8b3ddfde11a59bc910697090906dd36f0426401 (patch)
tree38a04082c0082ae43e4e78256434b7a929221e69 /chrome/browser/chromeos/login
parent9f3c8499973c9e2943e3d602a8a0f91fe1402421 (diff)
downloadchromium_src-e8b3ddfde11a59bc910697090906dd36f0426401.zip
chromium_src-e8b3ddfde11a59bc910697090906dd36f0426401.tar.gz
chromium_src-e8b3ddfde11a59bc910697090906dd36f0426401.tar.bz2
Makes the password field show the text 'Password' when empty.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1222003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/login')
-rw-r--r--chrome/browser/chromeos/login/user_controller.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/login/user_controller.cc b/chrome/browser/chromeos/login/user_controller.cc
index 3fcf1644..2456cfc 100644
--- a/chrome/browser/chromeos/login/user_controller.cc
+++ b/chrome/browser/chromeos/login/user_controller.cc
@@ -124,6 +124,8 @@ void UserController::Login() {
WidgetGtk* UserController::CreateControlsWindow(int index, int* height) {
password_field_ = new views::Textfield(views::Textfield::STYLE_PASSWORD);
+ password_field_->set_text_to_display_when_empty(
+ l10n_util::GetStringUTF16(IDS_LOGIN_EMPTY_PASSWORD_TEXT));
password_field_->SetController(this);
submit_button_ = new views::NativeButton(
this, l10n_util::GetString(IDS_LOGIN_BUTTON));