| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 PASSWORD_ENTRY_PHONE_NOT_LOCKABLE = 11, | 42 PASSWORD_ENTRY_PHONE_NOT_LOCKABLE = 11, |
| 43 // Password is used because phone is not close enough (roughly, at least 30 | 43 // Password is used because phone is not close enough (roughly, at least 30 |
| 44 // feet away). | 44 // feet away). |
| 45 PASSWORD_ENTRY_RSSI_TOO_LOW = 12, | 45 PASSWORD_ENTRY_RSSI_TOO_LOW = 12, |
| 46 // Password is used because phone is not supported. | 46 // Password is used because phone is not supported. |
| 47 PASSWORD_ENTRY_PHONE_UNSUPPORTED = 13, | 47 PASSWORD_ENTRY_PHONE_UNSUPPORTED = 13, |
| 48 // Password is used because user types in password. This is unlikely to happen | 48 // Password is used because user types in password. This is unlikely to happen |
| 49 // though. | 49 // though. |
| 50 PASSWORD_ENTRY_WITH_AUTHENTICATED_PHONE = 14, | 50 PASSWORD_ENTRY_WITH_AUTHENTICATED_PHONE = 14, |
| 51 // Password is used because phone is not right next to the Chromebook. | 51 // Password is used because phone is not right next to the Chromebook. |
| 52 PASSWORD_ENTRY_TX_POWER_TOO_HIGH = 15, | 52 PASSWORD_ENTRY_TX_POWER_TOO_HIGH = 15, // DEPRECATED |
| 53 // Password is used because Easy sign-in failed. | 53 // Password is used because Easy sign-in failed. |
| 54 PASSWORD_ENTRY_LOGIN_FAILED = 16, | 54 PASSWORD_ENTRY_LOGIN_FAILED = 16, |
| 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_TX_POWER_TOO_HIGH = 19, | 63 PASSWORD_ENTRY_PHONE_LOCKED_AND_RSSI_TOO_LOW = 19, |
| 64 | 64 |
| 65 EASY_UNLOCK_AUTH_EVENT_COUNT // Must be the last entry. | 65 EASY_UNLOCK_AUTH_EVENT_COUNT // Must be the last entry. |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 enum EasyUnlockTrialRunEvent { | 68 enum EasyUnlockTrialRunEvent { |
| 69 // A trial run was initiated from the Easy Unlock setup app. | 69 // A trial run was initiated from the Easy Unlock setup app. |
| 70 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0, | 70 EASY_UNLOCK_TRIAL_RUN_EVENT_LAUNCHED = 0, |
| 71 // The user clicked on the lock icon during the trial run. | 71 // The user clicked on the lock icon during the trial run. |
| 72 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1, | 72 EASY_UNLOCK_TRIAL_RUN_EVENT_CLICKED_LOCK_ICON = 1, |
| 73 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry. | 73 EASY_UNLOCK_TRIAL_RUN_EVENT_COUNT // Must be the last entry. |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 void RecordEasyUnlockDidUserManuallyUnlockPhone(bool did_unlock); | 76 void RecordEasyUnlockDidUserManuallyUnlockPhone(bool did_unlock); |
| 77 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration); | 77 void RecordEasyUnlockSigninDuration(const base::TimeDelta& duration); |
| 78 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); | 78 void RecordEasyUnlockSigninEvent(EasyUnlockAuthEvent event); |
| 79 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration); | 79 void RecordEasyUnlockScreenUnlockDuration(const base::TimeDelta& duration); |
| 80 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); | 80 void RecordEasyUnlockScreenUnlockEvent(EasyUnlockAuthEvent event); |
| 81 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event); | 81 void RecordEasyUnlockTrialRunEvent(EasyUnlockTrialRunEvent event); |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ | 83 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_ |
| OLD | NEW |