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

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

Issue 2108363002: Fix null deref when hiding the PIN keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Don't log PII Created 4 years, 6 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.js » ('j') | no next file with comments »
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 14652466d3eac6f0002b34d7a67d66b8b1aacddf..198888fab8786fbf496e4d6769d9fedd55c0519a 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -359,16 +359,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
* @param {!user} user The user who can no longer enter a PIN.
*/
disablePinKeyboardForUser: function(user) {
- var pinContainer = $('pin-container');
-
- // Transition opacity to 0, and when the transition is done hide the
- // keyboard so it doesn't take layout space.
- pinContainer.style.opacity = 0;
- pinContainer.addEventListener('webkitTransitionEnd', function f(e) {
- pinContainer.removeEventListener('webkitTransitionEnd', f);
- pinContainer.hidden = true;
- });
- ensureTransitionEndEvent(pinContainer);
+ $('pod-row').setPinVisibility(user, false);
},
/**
« no previous file with comments | « no previous file | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698