base::Time multiplicative operator overloading
[chromium-blink-merge.git] / chrome / browser / signin / easy_unlock_metrics.cc
blobba46c7f6479ade8cbd853d36add7859e7c02036e
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 RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event) {
11 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
12 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.SignIn", event,
13 EASY_UNLOCK_AUTH_EVENT_COUNT);
16 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event) {
17 DCHECK_LT(event, EASY_UNLOCK_AUTH_EVENT_COUNT);
18 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.AuthEvent.Unlock", event,
19 EASY_UNLOCK_AUTH_EVENT_COUNT);
22 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event) {
23 DCHECK_LT(event, EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT);
24 UMA_HISTOGRAM_ENUMERATION("EasyUnlock.TrialRun.Events",
25 event,
26 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT);