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 namespace base { | 8 namespace base { |
9 class TimeDelta; | 9 class TimeDelta; |
10 } | 10 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Password is used because pairing data is changed for a "new" Chromebook | 55 // Password is used because pairing data is changed for a "new" Chromebook |
56 // (where there was no previous pairing data). | 56 // (where there was no previous pairing data). |
57 PASSWORD_ENTRY_PAIRING_ADDED = 17, | 57 PASSWORD_ENTRY_PAIRING_ADDED = 17, |
58 // Password is used because there is no screenlock state handler. Most likely | 58 // Password is used because there is no screenlock state handler. Most likely |
59 // because EasyUnlock is disabled, e.g. Bluetooth adapter not ready. | 59 // because EasyUnlock is disabled, e.g. Bluetooth adapter not ready. |
60 PASSWORD_ENTRY_NO_SCREENLOCK_STATE_HANDLER = 18, | 60 PASSWORD_ENTRY_NO_SCREENLOCK_STATE_HANDLER = 18, |
61 // Password is used because the phone is (a) locked, and (b) not right next to | 61 // Password is used because the phone is (a) locked, and (b) not right next to |
62 // the Chromebook. | 62 // the Chromebook. |
63 PASSWORD_ENTRY_PHONE_LOCKED_AND_RSSI_TOO_LOW = 19, | 63 PASSWORD_ENTRY_PHONE_LOCKED_AND_RSSI_TOO_LOW = 19, |
64 | 64 |
| 65 // Password entry was forced due to the reauth policy (e.g. the user must type |
| 66 // their password every 20 hours). |
| 67 PASSWORD_ENTRY_FORCED_REAUTH = 20, |
| 68 |
65 EASY_UNLOCK_AUTH_EVENT_COUNT // Must be the last entry. | 69 EASY_UNLOCK_AUTH_EVENT_COUNT // Must be the last entry. |
66 }; | 70 }; |
67 | 71 |
68 enum EasyUnlockTrialRunEvent { | 72 enum EasyUnlockTrialRunEvent { |
69 // A trial run was initiated from the Easy Unlock setup app. | 73 // A trial run was initiated from the Easy Unlock setup app. |
70 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0, | 74 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0, |
71 // The user clicked on the lock icon during the trial run. | 75 // The user clicked on the lock icon during the trial run. |
72 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1, | 76 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1, |
73 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry. | 77 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry. |
74 }; | 78 }; |
75 | 79 |
76 void RecordEasyUnlockDidUserManuallyUnlockPhone(bool did_unlock); | 80 void RecordEasyUnlockDidUserManuallyUnlockPhone(bool did_unlock); |
77 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration); | 81 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration); |
78 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); | 82 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); |
79 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration); | 83 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration); |
80 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); | 84 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); |
81 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event); | 85 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event); |
82 | 86 |
83 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ | 87 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ |
OLD | NEW |