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

Unified Diff: chrome/browser/signin/easy_unlock_metrics.cc

Issue 1022233002: [Smart Lock] Add UMA metrics to measure duration of unlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hook into the existing PowerMonitor observer Created 5 years, 9 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 | « chrome/browser/signin/easy_unlock_metrics.h ('k') | chrome/browser/signin/easy_unlock_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/easy_unlock_metrics.cc
diff --git a/chrome/browser/signin/easy_unlock_metrics.cc b/chrome/browser/signin/easy_unlock_metrics.cc
index ba46c7f6479ade8cbd853d36add7859e7c02036e..722bd505c264ddf00a8f69a52e3f9f991dc41f70 100644
--- a/chrome/browser/signin/easy_unlock_metrics.cc
+++ b/chrome/browser/signin/easy_unlock_metrics.cc
@@ -7,12 +7,20 @@
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
+void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.SignIn.Duration", duration);
+}
+
void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event) {
DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.SignIn", event,
EASY_UNLOCK_AUTH_EVENT_COUNT);
}
+void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration) {
+ UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.Unlock.Duration", duration);
+}
+
void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event) {
DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.Unlock", event,
« no previous file with comments | « chrome/browser/signin/easy_unlock_metrics.h ('k') | chrome/browser/signin/easy_unlock_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698