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

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 2302483003: Pin keyboard improvements. (Closed)
Patch Set: Fixed patch set 1 errors. Created 4 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: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index dbf03e91657250ff9b917a4631318018737ffcf5..f8c27fc801639e71df354ae2356f63a6c15beccd 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -1127,6 +1127,10 @@ cr.define('login', function() {
// Set the focus to the input element after showing/hiding pin keyboard.
this.mainInput.focus();
+
+ // Change the password placeholder based on pin keyboard visibility.
+ this.passwordElement.placeholder = loadTimeData.getString(visible ?
+ 'pinKeyboardPlaceholderPinPassword' : 'passwordHint');
},
isPinShown: function() {

Powered by Google App Engine
This is Rietveld 408576698