diff options
author | nkostylev <nkostylev@chromium.org> | 2015-05-07 15:23:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-07 22:23:46 +0000 |
commit | eb9ce0de55f3746e59ea805ca954a1be849b3815 (patch) | |
tree | 938df7ec3e385d8c8052914b624009964ce820c1 /ui/login | |
parent | 179b32c0a35ad3070b9b28ce05ac986677b7c521 (diff) | |
download | chromium_src-eb9ce0de55f3746e59ea805ca954a1be849b3815.zip chromium_src-eb9ce0de55f3746e59ea805ca954a1be849b3815.tar.gz chromium_src-eb9ce0de55f3746e59ea805ca954a1be849b3815.tar.bz2 |
UMA to track the reason for re-auth
Landing https://codereview.chromium.org/1114543002/
BUG=469992
TBR=isherman@chromium.org
Review URL: https://codereview.chromium.org/1132523002
Cr-Commit-Position: refs/heads/master@{#328858}
Diffstat (limited to 'ui/login')
-rw-r--r-- | ui/login/account_picker/screen_account_picker.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js index 61e6f54..7f7635d 100644 --- a/ui/login/account_picker/screen_account_picker.js +++ b/ui/login/account_picker/screen_account_picker.js @@ -167,8 +167,14 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() { // Show web authentication if this is not a supervised user. if (loginAttempts > MAX_LOGIN_ATTEMPTS_IN_POD && !activatedPod.user.supervisedUser) { + chrome.send('maxIncorrectPasswordAttempts', + [activatedPod.user.emailAddress]); activatedPod.showSigninUI(); } else { + if (loginAttempts == 1) { + chrome.send('firstIncorrectPasswordAttempt', + [activatedPod.user.emailAddress]); + } // We want bubble's arrow to point to the first letter of input. /** @const */ var BUBBLE_OFFSET = 7; /** @const */ var BUBBLE_PADDING = 4; |