| Index: components/arc/common/auth.mojom
|
| diff --git a/components/arc/common/auth.mojom b/components/arc/common/auth.mojom
|
| index 8a6ba3c0cf7aad641dc5ddbdd3d44254327a2ad5..c77741460860dedfdc982a1c6bb8a74309454cac 100644
|
| --- a/components/arc/common/auth.mojom
|
| +++ b/components/arc/common/auth.mojom
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Next MinVersion: 6
|
| +// Next MinVersion: 8
|
|
|
| module arc.mojom;
|
|
|
| @@ -76,6 +76,23 @@ enum ChromeAccountType {
|
| ROBOT_ACCOUNT = 2,
|
| };
|
|
|
| +// These values describe the type of the metrics to report.
|
| +[Extensible]
|
| +enum MetricsType {
|
| + // Duration of waiting for network connection in milliseconds.
|
| + NETWORK_WAITING_TIME_MILLISECONDS = 0,
|
| +
|
| + // Number of attempts to wait for Checkin task completed. 0 indicates that
|
| + // Checkin task was already completed prior to GMS SignIn.
|
| + CHECKIN_ATTEMPTS = 1,
|
| +
|
| + // Duration of waiting for Checkin task completed in milliseconds.
|
| + CHECKIN_TIME_MILLISECONDS = 2,
|
| +
|
| + // Duration of waiting for sign-in completed in milliseconds.
|
| + SIGNIN_TIME_MILLISECONDS = 3,
|
| +};
|
| +
|
| // The necessary information for Android to sign in and provision itself.
|
| struct AccountInfo {
|
| // The authorization code that can be used in Android to sign in. If it is
|
| @@ -89,7 +106,7 @@ struct AccountInfo {
|
| bool is_managed;
|
| };
|
|
|
| -// Next Method ID: 7.
|
| +// Next Method ID: 9.
|
| interface AuthHost {
|
| // Notifies Chrome that the sign-in is completed successfully.
|
| [MinVersion=2] OnSignInComplete@2();
|
| @@ -100,6 +117,9 @@ interface AuthHost {
|
| // information.
|
| [MinVersion=5] RequestAccountInfo@7();
|
|
|
| + // Reports metrics to Chrome to be recorded in UMA.
|
| + [MinVersion=7] ReportMetrics@8(MetricsType metrics_type, int32 value);
|
| +
|
| // Deprecated methods:
|
|
|
| // Returns an authorization code, which can be used to sign in.
|
|
|