Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / signin / easy_unlock_metrics.cc
blob9fa81ee062bf7e45d0291818c1eddccedc48982b
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 RecordEasyUnlockDidUserManuallyUnlockPhone(bool did_unlock) {
11 UMA_HISTOGRAM_BOOLEAN("EasyUnlock.AuthEvent.DidUserManuallyUnlockPhone",
12 did_unlock);
15 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration) {
16 UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.SignIn.Duration", duration);
19 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event) {
20 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
21 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.SignIn", event,
22 EASY_UNLOCK_AUTH_EVENT_COUNT);
25 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration) {
26 UMA_HISTOGRAM_MEDIUM_TIMES("EasyUnlock.AuthEvent.Unlock.Duration", duration);
29 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event) {
30 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
31 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.Unlock", event,
32 EASY_UNLOCK_AUTH_EVENT_COUNT);
35 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event) {
36 DCHECK_LT(event, EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT);
37 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.TrialRun.Events",
38 event,
39 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT);