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

Side by Side Diff: components/arc/common/auth.mojom

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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module arc.mojom; 5 module arc.mojom;
6 6
7 // These values describe failure reason of sign-in. 7 // These values describe failure reason of sign-in.
8 enum ArcSignInFailureReason { 8 enum ArcSignInFailureReason {
9 // 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.
10 // The values are shuffled to keep the backward compatibility.
11 // Next value: 14.
victorhsieh 2016/07/25 20:30:42 14 -> 15
hidehiko 2016/07/26 13:02:58 Oops. Done.
9 UNKNOWN_ERROR = 0, 12 UNKNOWN_ERROR = 0,
10 NETWORK_ERROR = 1, 13
11 SERVICE_UNAVAILABLE = 2, 14 MOJO_VERSION_MISMATCH = 6,
12 BAD_AUTHENTICATION = 3, 15 MOJO_CALL_TIMEOUT = 7,
13 GMS_CORE_NOT_AVAILABLE = 4, 16
14 CLOUD_PROVISION_FLOW_FAIL = 5, 17 DEVICE_CHECK_IN_FAILED = 4,
18
19 // 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
20 GMS_SIGN_IN_FAILED = 8,
21 GMS_SIGN_IN_TIMEOUT = 9,
22 GMS_NETWORK_ERROR = 1,
23 GMS_SERVICE_UNAVAILABLE = 2,
24 GMS_BAD_AUTHENTICATION = 3,
25 GMS_EMPTY_CONSUMER_PKG_OR_SIG = 10,
26 GMS_NEEDS_2F = 11,
27 GMS_NEEDS_POST_SIGN_IN_FLOW = 12,
28 GMS_NEEDS_BROWSER = 13,
29
30 // Cloud provisioning errors.
31 CLOUD_PROVISION_FLOW_FAILED = 5,
32 CLOUD_PROVISION_FLOW_TIMEOUT = 14,
15 }; 33 };
16 34
17 interface AuthHost { 35 interface AuthHost {
18 // Returns an authorization code, which can be used to sign in. 36 // Returns an authorization code, which can be used to sign in.
19 GetAuthCodeDeprecated@0() => (string auth_code); 37 GetAuthCodeDeprecated@0() => (string auth_code);
20 // Returns an authorization code in case is_enforced is set, which can be used 38 // Returns an authorization code in case is_enforced is set, which can be used
21 // to sign in. 39 // to sign in.
22 [MinVersion=1] GetAuthCode@1() => (string auth_code, bool is_enforced); 40 [MinVersion=1] GetAuthCode@1() => (string auth_code, bool is_enforced);
23 // Gets whether the account is managed from Chrome OS. 41 // Gets whether the account is managed from Chrome OS.
24 [MinVersion=3] GetIsAccountManaged@4() => (bool is_managed); 42 [MinVersion=3] GetIsAccountManaged@4() => (bool is_managed);
25 // Notifies Chrome that the sign-in is completed successfully. 43 // Notifies Chrome that the sign-in is completed successfully.
26 [MinVersion=2] OnSignInComplete@2(); 44 [MinVersion=2] OnSignInComplete@2();
27 // Notifies Chrome that the sign-in fails to complete and provides failure 45 // Notifies Chrome that the sign-in fails to complete and provides failure
28 // reason. 46 // reason.
29 [MinVersion=2] OnSignInFailed@3(ArcSignInFailureReason reason); 47 [MinVersion=2] OnSignInFailed@3(ArcSignInFailureReason reason);
30 }; 48 };
31 49
32 interface AuthInstance { 50 interface AuthInstance {
33 // Establishes full-duplex communication with the host. 51 // Establishes full-duplex communication with the host.
34 Init@0(AuthHost host_ptr); 52 Init@0(AuthHost host_ptr);
35 }; 53 };
OLDNEW
« chrome/browser/chromeos/arc/arc_optin_uma.h ('K') | « chrome/browser/chromeos/arc/arc_optin_uma.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698