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

Unified Diff: chrome/browser/chromeos/arc/arc_optin_uma.h

Issue 2771943003: arc: Skip GMS Sign-In in case Android is already signed-in. (Closed)
Patch Set: 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
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 3b5844f058e4efa9a4723e6087d9f5fe3c3fe038..bdbf7a9f772da77efc4d0a35a0fbea24111f123b 100644
--- a/chrome/browser/chromeos/arc/arc_optin_uma.h
+++ b/chrome/browser/chromeos/arc/arc_optin_uma.h
@@ -119,6 +119,26 @@ enum class ProvisioningResult : int {
SIZE,
};
+enum class AccountCheckStatus : int {
+ // Checked account exists and is up to date.
+ UP_TO_DATE = 0,
+
+ // Checked account is new in the system.
+ NEW = 1,
+
+ // Checked account exists but need to be reauthorized.
+ NEED_REAUTH = 2,
+
+ // Checked account exists but it is in unknown state.
+ UNKNOWN = 3,
+
+ // Account check has failed.
+ CHECK_FAILED = 4,
+
+ // The size of this enum; keep last.
+ SIZE,
+};
+
void UpdateOptInActionUMA(OptInActionType type);
void UpdateOptInCancelUMA(OptInCancelReason reason);
void UpdateEnabledStateUMA(bool enabled);
@@ -129,6 +149,7 @@ void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time,
void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state);
void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time);
void UpdateAuthCheckinAttempts(int32_t num_attempts);
+void UpdateAuthAccountCheckStatus(AccountCheckStatus status);
// Outputs the stringified |result| to |os|. This is only for logging purposes.
std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result);

Powered by Google App Engine
This is Rietveld 408576698