Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Alex Chau | 7c6533d | 2019-07-19 16:15:11 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Hira Mahmood | 0f3c35a8 | 2024-07-31 15:43:26 | [diff] [blame] | 5 | #ifndef COMPONENTS_SHARING_MESSAGE_SHARING_DEVICE_REGISTRATION_RESULT_H_ |
| 6 | #define COMPONENTS_SHARING_MESSAGE_SHARING_DEVICE_REGISTRATION_RESULT_H_ |
Alex Chau | 7c6533d | 2019-07-19 16:15:11 | [diff] [blame] | 7 | |
| 8 | // Result of device registration with Sharing. |
| 9 | // These values are logged to UMA. Entries should not be renumbered and numeric |
| 10 | // values should never be reused. Please keep in sync with |
| 11 | // "SharingDeviceRegistrationResult" in src/tools/metrics/histograms/enums.xml. |
| 12 | enum class SharingDeviceRegistrationResult { |
| 13 | // Operation is successful. |
| 14 | kSuccess = 0, |
| 15 | // Failed with Sync not ready. |
| 16 | kSyncServiceError = 1, |
| 17 | // Failed with encryption related error. |
| 18 | kEncryptionError = 2, |
| 19 | // Failed with FCM transient error. |
| 20 | kFcmTransientError = 3, |
| 21 | // Failed with FCM fatal error. |
| 22 | kFcmFatalError = 4, |
Alex Chau | 9f03964 | 2019-07-25 20:25:44 | [diff] [blame] | 23 | // Device has not been registered. |
| 24 | kDeviceNotRegistered = 5, |
Alex Chau | f15a719 | 2020-01-30 17:37:51 | [diff] [blame] | 25 | // Other internal error. |
| 26 | kInternalError = 6, |
Alex Chau | 7c6533d | 2019-07-19 16:15:11 | [diff] [blame] | 27 | // Max value for historgram. |
Alex Chau | f15a719 | 2020-01-30 17:37:51 | [diff] [blame] | 28 | kMaxValue = kInternalError, |
Alex Chau | 7c6533d | 2019-07-19 16:15:11 | [diff] [blame] | 29 | }; |
| 30 | |
Hira Mahmood | 0f3c35a8 | 2024-07-31 15:43:26 | [diff] [blame] | 31 | #endif // COMPONENTS_SHARING_MESSAGE_SHARING_DEVICE_REGISTRATION_RESULT_H_ |