Index: components/arc/common/auth.mojom |
diff --git a/components/arc/common/auth.mojom b/components/arc/common/auth.mojom |
index 503cb3615f08997216ca32f62a90c683828612db..12f239b23f1ef5a60b7fea1e72021ee8512776e9 100644 |
--- a/components/arc/common/auth.mojom |
+++ b/components/arc/common/auth.mojom |
@@ -6,12 +6,30 @@ module arc.mojom; |
// These values describe failure reason of sign-in. |
enum ArcSignInFailureReason { |
+ // Negative values are reserved for internal use. |
victorhsieh
2016/07/25 20:30:42
What do you think to rename the enum to something
Luis Héctor Chávez
2016/07/25 21:04:47
If you are going to drastically change this enum,
hidehiko
2016/07/26 13:02:58
Re: error code.
My understanding is; At the moment
victorhsieh
2016/07/26 18:22:11
Agree. Although practically speaking, no SUCCESS
hidehiko
2016/07/26 18:50:48
Acknowledged.
|
+ // The values are shuffled to keep the backward compatibility. |
+ // Next value: 14. |
victorhsieh
2016/07/25 20:30:42
14 -> 15
hidehiko
2016/07/26 13:02:58
Oops. Done.
|
UNKNOWN_ERROR = 0, |
- NETWORK_ERROR = 1, |
- SERVICE_UNAVAILABLE = 2, |
- BAD_AUTHENTICATION = 3, |
- GMS_CORE_NOT_AVAILABLE = 4, |
- CLOUD_PROVISION_FLOW_FAIL = 5, |
+ |
+ MOJO_VERSION_MISMATCH = 6, |
+ MOJO_CALL_TIMEOUT = 7, |
+ |
+ DEVICE_CHECK_IN_FAILED = 4, |
+ |
+ // GMS errors. |
victorhsieh
2016/07/25 20:30:42
For the record, when I first started the review, I
hidehiko
2016/07/26 13:02:58
If we'd like to have details in UMA, this looks th
victorhsieh
2016/07/26 18:22:11
How about at least not expose things that doesn't
hidehiko
2016/07/26 18:50:48
I'm not very familiar with GMS errors in details,
victorhsieh
2016/07/26 19:52:42
I think we can remove GMS_NEEDS_* and probably GMS
Junichi Uekawa
2016/07/27 08:52:20
I am not too confident that they don't happen, we
hidehiko
2016/07/27 17:36:12
Thanks. So I removed GMS_NEEDS_* and GMS_EMPTY_CON
victorhsieh
2016/07/27 18:20:00
Those errors are pretty generic because they are a
|
+ GMS_SIGN_IN_FAILED = 8, |
+ GMS_SIGN_IN_TIMEOUT = 9, |
+ GMS_NETWORK_ERROR = 1, |
+ GMS_SERVICE_UNAVAILABLE = 2, |
+ GMS_BAD_AUTHENTICATION = 3, |
+ GMS_EMPTY_CONSUMER_PKG_OR_SIG = 10, |
+ GMS_NEEDS_2F = 11, |
+ GMS_NEEDS_POST_SIGN_IN_FLOW = 12, |
+ GMS_NEEDS_BROWSER = 13, |
+ |
+ // Cloud provisioning errors. |
+ CLOUD_PROVISION_FLOW_FAILED = 5, |
+ CLOUD_PROVISION_FLOW_TIMEOUT = 14, |
}; |
interface AuthHost { |