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

Side by Side Diff: chrome/browser/signin/easy_unlock_metrics.h

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, 8 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
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_
7 7
8 namespace base {
9 class TimeDelta;
10 }
11
8 // Tracking login events for Easy unlock metrics. 12 // Tracking login events for Easy unlock metrics.
9 // This enum is used to define the buckets for an enumerated UMA histogram. 13 // This enum is used to define the buckets for an enumerated UMA histogram.
10 // Hence, 14 // Hence,
11 // (a) existing enumerated constants should never be deleted or reordered, and 15 // (a) existing enumerated constants should never be deleted or reordered, and
12 // (b) new constants should only be appended at the end of the enumeration. 16 // (b) new constants should only be appended at the end of the enumeration.
13 enum EasyUnlockAuthEvent { 17 enum EasyUnlockAuthEvent {
14 // User is successfully authenticated using Easy Unlock. 18 // User is successfully authenticated using Easy Unlock.
15 EASY_UNLOCK_SUCCESS = 0, 19 EASY_UNLOCK_SUCCESS = 0,
16 // Easy Unlock failed to authenticate the user. 20 // Easy Unlock failed to authenticate the user.
17 EASY_UNLOCK_FAILURE = 1, 21 EASY_UNLOCK_FAILURE = 1,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 66 };
63 67
64 enum EasyUnlockTrialRunEvent { 68 enum EasyUnlockTrialRunEvent {
65 // A trial run was initiated from the Easy Unlock setup app. 69 // A trial run was initiated from the Easy Unlock setup app.
66 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0, 70 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0,
67 // The user clicked on the lock icon during the trial run. 71 // The user clicked on the lock icon during the trial run.
68 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1, 72 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1,
69 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry. 73 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry.
70 }; 74 };
71 75
76 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration);
72 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); 77 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event);
78 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration);
73 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); 79 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event);
74 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event); 80 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event);
75 81
76 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ 82 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698