Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4009)

Unified Diff: chrome/browser/chromeos/arc/arc_optin_uma.h

Issue 2173103002: Recategorize ARC auth sign in errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service_unittest.cc ('k') | components/arc/common/auth.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_optin_uma.h
diff --git a/chrome/browser/chromeos/arc/arc_optin_uma.h b/chrome/browser/chromeos/arc/arc_optin_uma.h
index 28246cfb329b9d1ebf8a08697930b459962315df..5955f6f6ad48f95aa5e95adc7b798714602febab 100644
--- a/chrome/browser/chromeos/arc/arc_optin_uma.h
+++ b/chrome/browser/chromeos/arc/arc_optin_uma.h
@@ -24,26 +24,59 @@ enum class OptInActionType : int {
};
enum class OptInCancelReason {
- USER_CANCEL = 0, // Canceled by user.
- UNKNOWN_ERROR = 1, // Unclassified failure.
- NETWORK_ERROR = 2, // Network failure.
- SERVICE_UNAVAILABLE = 3, // GMS Services are not available.
- BAD_AUTHENTICATION = 4, // Bad authentication returned by server.
- GMS_CORE_NOT_AVAILABLE = 5, // GMS Core is not available.
+ USER_CANCEL = 0, // Canceled by user.
+ UNKNOWN_ERROR = 1, // Unclassified failure.
+ NETWORK_ERROR = 2, // Network failure.
+ SERVICE_UNAVAILABLE = 3, // GMS Services are not available.
+ DEPRECATED_BAD_AUTHENTICATION = 4,
+ DEPRECATED_GMS_CORE_NOT_AVAILABLE = 5,
CLOUD_PROVISION_FLOW_FAIL = 6, // Cloud provision flow failed.
ANDROID_MANAGEMENT_REQUIRED = 7, // Android management is required for user.
SIZE, // The size of this enum; keep last.
};
-enum class ProvisioningResult {
- SUCCESS = 0, // Provisioning was successful.
khmel 2016/07/29 14:47:27 Would not we update tools/metrics/histograms/histo
- UNKNOWN_ERROR = 1, // Unclassified failure.
- NETWORK_ERROR = 2, // Network failure.
- SERVICE_UNAVAILABLE = 3, // GMS Services are not available.
- BAD_AUTHENTICATION = 4, // Bad authentication returned by server.
- GMS_CORE_NOT_AVAILABLE = 5, // GMS Core is not available.
- CLOUD_PROVISION_FLOW_FAIL = 6, // Cloud provision flow failed.
- SIZE, // The size of this enum; keep last.
+// The values should be listed in ascending order for SIZE a last, for safety.
+// For detailed meaning, please see also to auth.mojom.
+enum class ProvisioningResult : int {
+ // Provisioning was successful.
+ SUCCESS = 0,
+
+ // Unclassified failure.
+ UNKNOWN_ERROR = 1,
+
+ // GMS errors. More errors defined below.
+ GMS_NETWORK_ERROR = 2,
+ GMS_SERVICE_UNAVAILABLE = 3,
+ GMS_BAD_AUTHENTICATION = 4,
+
+ // Check in error. More errors defined below.
+ DEVICE_CHECK_IN_FAILED = 5,
+
+ // Cloud provision error. More errors defined below.
+ CLOUD_PROVISION_FLOW_FAILED = 6,
+
+ // Mojo errors.
+ MOJO_VERSION_MISMATCH = 7,
+ MOJO_CALL_TIMEOUT = 8,
+
+ // Check in error.
+ DEVICE_CHECK_IN_TIMEOUT = 9,
+ DEVICE_CHECK_IN_INTERNAL_ERROR = 10,
+
+ // GMS errors:
+ GMS_SIGN_IN_FAILED = 11,
+ GMS_SIGN_IN_TIMEOUT = 12,
+ GMS_SIGN_IN_INTERNAL_ERROR = 13,
+
+ // Cloud provision error:
+ CLOUD_PROVISION_FLOW_TIMEOUT = 14,
+ CLOUD_PROVISION_FLOW_INTERNAL_ERROR = 15,
+
+ // ARC instance is stopped during the sign in procedure.
+ ARC_STOPPED = 16,
+
+ // The size of this enum; keep last.
+ SIZE,
};
void UpdateOptInActionUMA(OptInActionType type);
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service_unittest.cc ('k') | components/arc/common/auth.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698