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

Side by Side 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: 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 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 #include "chrome/browser/signin/easy_unlock_metrics.h" 5 #include "chrome/browser/signin/easy_unlock_metrics.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 9
10 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration) {
11 UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.SignIn.Duration", duration);
12 }
13
10 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event) { 14 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event) {
11 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT); 15 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
12 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.SignIn", event, 16 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.SignIn", event,
13 EASY_UNLOCK_AUTH_EVENT_COUNT); 17 EASY_UNLOCK_AUTH_EVENT_COUNT);
14 } 18 }
15 19
20 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration) {
21 UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.Unlock.Duration", duration);
22 }
23
16 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event) { 24 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event) {
17 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT); 25 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
18 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.Unlock", event, 26 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.Unlock", event,
19 EASY_UNLOCK_AUTH_EVENT_COUNT); 27 EASY_UNLOCK_AUTH_EVENT_COUNT);
20 } 28 }
21 29
22 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event) { 30 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event) {
23 DCHECK_LT(event, EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT); 31 DCHECK_LT(event, EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT);
24 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.TrialRun.Events", 32 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.TrialRun.Events",
25 event, 33 event,
26 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT); 34 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT);
27 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698