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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/lock/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.cc b/chrome/browser/chromeos/login/lock/screen_locker.cc
index bffe739b0a78a3888c2b5780634e16f315b77887..2b5a0a0727923d89170637ee8e970a42a2c63846 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/screen_locker.cc
@@ -189,6 +189,14 @@ void ScreenLocker::OnAuthFailure(const AuthFailure& error) {
UMA_HISTOGRAM_TIMES("ScreenLocker.AuthenticationFailureTime", delta);
}
+ if (error.IsPinAttempt()) {
jdufault 2016/08/04 19:42:04 This is a lot of plumbing that I think we can do w
sammiequon 2016/08/05 01:45:59 As per our offline chat there may be some issues.
+ UMA_HISTOGRAM_ENUMERATION("ScreenLocker.AuthenticationFailure",
+ AUTH_FAILURE_PIN, AUTH_FAILURE_TYPE_NUM);
+ } else {
+ UMA_HISTOGRAM_ENUMERATION("ScreenLocker.AuthenticationFailure",
+ AUTH_FAILURE_PASSWORD, AUTH_FAILURE_TYPE_NUM);
+ }
+
EnableInput();
// Don't enable signout button here as we're showing
// MessageBubble.
@@ -213,6 +221,14 @@ void ScreenLocker::OnAuthSuccess(const UserContext& user_context) {
UMA_HISTOGRAM_TIMES("ScreenLocker.AuthenticationSuccessTime", delta);
}
+ if (user_context.IsUsingPin()) {
+ UMA_HISTOGRAM_ENUMERATION("ScreenLocker.AuthenticationSuccess",
+ AUTH_SUCCESS_PIN, AUTH_SUCCESS_TYPE_NUM);
+ } else {
+ UMA_HISTOGRAM_ENUMERATION("ScreenLocker.AuthenticationSuccess",
+ AUTH_SUCCESS_PASSWORD, AUTH_SUCCESS_TYPE_NUM);
+ }
+
const user_manager::User* user =
user_manager::UserManager::Get()->FindUser(user_context.GetAccountId());
if (user) {

Powered by Google App Engine
This is Rietveld 408576698