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

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

Issue 2427073002: cros: Fixed 3 bugs for pin unlock. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | ui/login/account_picker/user_pod_row.css » ('j') | ui/login/account_picker/user_pod_row.css » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index 69c5eafe3dbb55e5b6523da09c79a181a2be8fd0..c7264894f8d2d4e9dae63abcb871cbcbdfc0bb2e 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -249,6 +249,14 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
if (Oobe.getInstance().displayType == DISPLAY_TYPE.DESKTOP_USER_MANAGER)
$('login-header-bar').classList.toggle('shadow', users.length > 8);
+ // Disable pin for users which should not be able to access pin. Such
+ // users include those who have not set up pin as those who have not
+ // entered their password recently.
+ for (var i in users) {
jdufault 2016/10/19 18:12:29 Don't we usually do a for (var i = 0; i < users.le
sammiequon 2016/10/19 21:08:10 Done.
+ if (!users[i].showPin)
+ this.disablePinKeyboardForUser(users[i].username);
jdufault 2016/10/19 18:12:29 Why not put this inside of loadPinKeyboardIfNeeded
sammiequon 2016/10/19 21:08:10 Done.
+ }
+
this.loadPinKeyboardIfNeeded_(users);
},
« no previous file with comments | « no previous file | ui/login/account_picker/user_pod_row.css » ('j') | ui/login/account_picker/user_pod_row.css » ('J')

Powered by Google App Engine
This is Rietveld 408576698