OLD | NEW |
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 // Tracking login events for Easy unlock metrics. | 8 // Tracking login events for Easy unlock metrics. |
9 // This enum is used to define the buckets for an enumerated UMA histogram. | 9 // This enum is used to define the buckets for an enumerated UMA histogram. |
10 // Hence, | 10 // Hence, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Password is used because there is no screenlock state handler. Most likely | 54 // Password is used because there is no screenlock state handler. Most likely |
55 // because EasyUnlock is disabled, e.g. Bluetooth adapter not ready. | 55 // because EasyUnlock is disabled, e.g. Bluetooth adapter not ready. |
56 PASSWORD_ENTRY_NO_SCREENLOCK_STATE_HANDLER = 18, | 56 PASSWORD_ENTRY_NO_SCREENLOCK_STATE_HANDLER = 18, |
57 // Password is used because the phone is (a) locked, and (b) not right next to | 57 // Password is used because the phone is (a) locked, and (b) not right next to |
58 // the Chromebook. | 58 // the Chromebook. |
59 PASSWORD_ENTRY_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH = 19, | 59 PASSWORD_ENTRY_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH = 19, |
60 | 60 |
61 EASY_UNLOCK_AUTH_EVENT_COUNT // Must be the last entry. | 61 EASY_UNLOCK_AUTH_EVENT_COUNT // Must be the last entry. |
62 }; | 62 }; |
63 | 63 |
| 64 enum EasyUnlockTrialRunEvent { |
| 65 // A trial run was initiated from the Easy Unlock setup app. |
| 66 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0, |
| 67 // The user clicked on the lock icon during the trial run. |
| 68 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1, |
| 69 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry. |
| 70 }; |
| 71 |
64 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); | 72 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); |
65 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); | 73 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); |
| 74 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event); |
66 | 75 |
67 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ | 76 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ |
OLD | NEW |