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

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2208583006: UMA for pin unlock success/failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Nit. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 } else if (this.isAuthTypeUserClick) { 1318 } else if (this.isAuthTypeUserClick) {
1319 Oobe.disableSigninUI(); 1319 Oobe.disableSigninUI();
1320 this.classList.toggle('signing-in', true); 1320 this.classList.toggle('signing-in', true);
1321 chrome.send('attemptUnlock', [this.user.username]); 1321 chrome.send('attemptUnlock', [this.user.username]);
1322 } else if (this.isAuthTypePassword) { 1322 } else if (this.isAuthTypePassword) {
1323 var pinValue = this.pinKeyboard ? this.pinKeyboard.value : ''; 1323 var pinValue = this.pinKeyboard ? this.pinKeyboard.value : '';
1324 var password = this.passwordElement.value || pinValue; 1324 var password = this.passwordElement.value || pinValue;
1325 if (!password) 1325 if (!password)
1326 return false; 1326 return false;
1327 Oobe.disableSigninUI(); 1327 Oobe.disableSigninUI();
1328 chrome.send('authenticateUser', [this.user.username, password]); 1328 chrome.send('authenticateUser', [this.user.username, password,
1329 this.isPinShown()]);
1329 } else { 1330 } else {
1330 console.error('Activating user pod with invalid authentication type: ' + 1331 console.error('Activating user pod with invalid authentication type: ' +
1331 this.authType); 1332 this.authType);
1332 } 1333 }
1333 1334
1334 return true; 1335 return true;
1335 }, 1336 },
1336 1337
1337 showSupervisedUserSigninWarning: function() { 1338 showSupervisedUserSigninWarning: function() {
1338 // Legacy supervised user token has been invalidated. 1339 // Legacy supervised user token has been invalidated.
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3524 if (pod && pod.multiProfilesPolicyApplied) { 3525 if (pod && pod.multiProfilesPolicyApplied) {
3525 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3526 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3526 } 3527 }
3527 } 3528 }
3528 }; 3529 };
3529 3530
3530 return { 3531 return {
3531 PodRow: PodRow 3532 PodRow: PodRow
3532 }; 3533 };
3533 }); 3534 });
OLDNEW
« tools/metrics/histograms/histograms.xml ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698