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

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: 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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 this.showSigninUI(); 1319 this.showSigninUI();
1320 } else if (this.isAuthTypeUserClick) { 1320 } else if (this.isAuthTypeUserClick) {
1321 Oobe.disableSigninUI(); 1321 Oobe.disableSigninUI();
1322 this.classList.toggle('signing-in', true); 1322 this.classList.toggle('signing-in', true);
1323 chrome.send('attemptUnlock', [this.user.username]); 1323 chrome.send('attemptUnlock', [this.user.username]);
1324 } else if (this.isAuthTypePassword) { 1324 } else if (this.isAuthTypePassword) {
1325 var password = this.passwordElement.value || this.pinKeyboard.value; 1325 var password = this.passwordElement.value || this.pinKeyboard.value;
1326 if (!password) 1326 if (!password)
1327 return false; 1327 return false;
1328 Oobe.disableSigninUI(); 1328 Oobe.disableSigninUI();
1329 chrome.send('authenticateUser', [this.user.username, password]); 1329 chrome.send('authenticateUser', [this.user.username, password,
1330 this.isPinShown()]);
1330 } else { 1331 } else {
1331 console.error('Activating user pod with invalid authentication type: ' + 1332 console.error('Activating user pod with invalid authentication type: ' +
1332 this.authType); 1333 this.authType);
1333 } 1334 }
1334 1335
1335 return true; 1336 return true;
1336 }, 1337 },
1337 1338
1338 showSupervisedUserSigninWarning: function() { 1339 showSupervisedUserSigninWarning: function() {
1339 // Legacy supervised user token has been invalidated. 1340 // Legacy supervised user token has been invalidated.
(...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after
3518 if (pod && pod.multiProfilesPolicyApplied) { 3519 if (pod && pod.multiProfilesPolicyApplied) {
3519 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3520 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3520 } 3521 }
3521 } 3522 }
3522 }; 3523 };
3523 3524
3524 return { 3525 return {
3525 PodRow: PodRow 3526 PodRow: PodRow
3526 }; 3527 };
3527 }); 3528 });
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