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

Unified Diff: components/arc/common/auth.mojom

Issue 2734983002: [Merge M57] arc: Handle metrics for Auth operations. (Closed)
Patch Set: fix merge conflict/manually tested with/without android changes Created 3 years, 9 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_optin_uma.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/chromeos/arc/arc_optin_uma.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698