blob: 9910205642cb7aeea53e35a926e070c34268b8c3 [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2019 The Chromium Authors
Alex Chau7c6533d2019-07-19 16:15:112// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Hira Mahmood0f3c35a82024-07-31 15:43:265#ifndef COMPONENTS_SHARING_MESSAGE_SHARING_DEVICE_REGISTRATION_RESULT_H_
6#define COMPONENTS_SHARING_MESSAGE_SHARING_DEVICE_REGISTRATION_RESULT_H_
Alex Chau7c6533d2019-07-19 16:15:117
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.
12enum 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 Chau9f039642019-07-25 20:25:4423 // Device has not been registered.
24 kDeviceNotRegistered = 5,
Alex Chauf15a7192020-01-30 17:37:5125 // Other internal error.
26 kInternalError = 6,
Alex Chau7c6533d2019-07-19 16:15:1127 // Max value for historgram.
Alex Chauf15a7192020-01-30 17:37:5128 kMaxValue = kInternalError,
Alex Chau7c6533d2019-07-19 16:15:1129};
30
Hira Mahmood0f3c35a82024-07-31 15:43:2631#endif // COMPONENTS_SHARING_MESSAGE_SHARING_DEVICE_REGISTRATION_RESULT_H_