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

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: Update error code. 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
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..a2f96a2c00a93d47211413e348a63e021f49d123 100644
--- a/chrome/browser/chromeos/arc/arc_optin_uma.h
+++ b/chrome/browser/chromeos/arc/arc_optin_uma.h
@@ -24,26 +24,67 @@ 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.
- 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.
+enum class ProvisioningResult : int {
+ // Provisioning was successful.
+ SUCCESS = 0,
+
+ // Unclassified failure.
+ UNKNOWN_ERROR = 1,
+
+ // Network failure in GMS sign in.
+ GMS_NETWORK_ERROR = 2,
+
+ // GMS Services are not available.
+ GMS_SERVICE_UNAVAILABLE = 3,
+
+ // Bad authentication returned by server.
+ GMS_BAD_AUTHENTICATION = 4,
+
+ // Failed to Check in on the device.
victorhsieh 2016/07/25 20:30:41 nit: checkin
hidehiko 2016/07/26 13:02:58 Done.
+ DEVICE_CHECK_IN_FAILED = 5,
+
+ // Cloud provision flow failed.
+ CLOUD_PROVISION_FLOW_FAILED = 6,
+
+ // ArcAuthHost API version mismatch.
+ MOJO_VERSION_MISMATCH = 7,
+
+ // Invocation of ArcAuthHost API is timed out.
+ MOJO_CALL_TIMEOUT = 8,
+
+ // Failed to sign-in on GMS. No detailed info.
+ GMS_SIGN_IN_FAILED = 9,
+
+ // GMS sign-in is timed out.
+ GMS_SIGN_IN_TIMEOUT = 10,
+
+ // Empty consumer package when getting token.
+ GMS_EMPTY_CONSUMER_PKG_OR_SIG = 11,
+
+ // 2-Factor errors.
+ GMS_NEEDS_2F = 12,
+ GMS_NEEDS_POST_SIGN_IN_FLOW = 13,
+ GMS_NEEDS_BROWSER = 14,
+
+ // Cloud provision flow is timed out.
+ CLOUD_PROVISION_FLOW_TIMEOUT = 15,
victorhsieh 2016/07/25 20:30:42 nit/optional: put this next to CLOUD_PROVISION_FLO
hidehiko 2016/07/26 13:02:58 Can I keep this as is? 1 - 6 are in the order for
victorhsieh 2016/07/26 18:22:11 Not sure I understand this. Aren't their value ex
hidehiko 2016/07/26 18:50:48 Sorry for my poor explanation. This is an enum des
victorhsieh 2016/07/26 19:52:42 The style is probably subjective, especially this
hidehiko 2016/07/27 17:36:12 Looks technical stuff, because "putting SIZE at la
victorhsieh 2016/07/27 18:03:05 I thought SIZE's value is derived from the previou
+
+ // ARC instance is stopped during the sign in procedure.
+ ARC_STOPPED = 16,
+
+ // The size of this enum; keep last.
+ SIZE,
};
void UpdateOptInActionUMA(OptInActionType type);

Powered by Google App Engine
This is Rietveld 408576698