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
3 // found in the LICENSE file.
5 #include "chrome/browser/signin/easy_unlock_metrics.h"
7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h"
10 void RecordEasyUnlockSigninDuration(const base::TimeDelta
& duration
) {
11 UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.SignIn.Duration", duration
);
14 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event
) {
15 DCHECK_LT(event
, EASY_UNLOCK_AUTH_EVENT_COUNT
);
16 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.SignIn", event
,
17 EASY_UNLOCK_AUTH_EVENT_COUNT
);
20 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta
& duration
) {
21 UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.Unlock.Duration", duration
);
24 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event
) {
25 DCHECK_LT(event
, EASY_UNLOCK_AUTH_EVENT_COUNT
);
26 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.Unlock", event
,
27 EASY_UNLOCK_AUTH_EVENT_COUNT
);
30 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event
) {
31 DCHECK_LT(event
, EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT
);
32 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.TrialRun.Events",
34 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT
);