| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
| 7 | 7 |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 | 9 |
| 10 #include "components/arc/common/auth.mojom.h" | 10 #include "components/arc/common/auth.mojom.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 void UpdateOptInActionUMA(OptInActionType type); | 181 void UpdateOptInActionUMA(OptInActionType type); |
| 182 void UpdateOptInCancelUMA(OptInCancelReason reason); | 182 void UpdateOptInCancelUMA(OptInCancelReason reason); |
| 183 void UpdateOptInFlowResultUMA(OptInFlowResult result); | 183 void UpdateOptInFlowResultUMA(OptInFlowResult result); |
| 184 void UpdateEnabledStateUMA(bool enabled); | 184 void UpdateEnabledStateUMA(bool enabled); |
| 185 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); | 185 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); |
| 186 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, | 186 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, |
| 187 bool success, | 187 bool success, |
| 188 bool managed); | 188 bool managed); |
| 189 void UpdatePlayStoreShowTime(const base::TimeDelta& elapsed_time, bool managed); |
| 189 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); | 190 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); |
| 190 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); | 191 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); |
| 191 void UpdateAuthCheckinAttempts(int32_t num_attempts); | 192 void UpdateAuthCheckinAttempts(int32_t num_attempts); |
| 192 void UpdateAuthAccountCheckStatus(mojom::AccountCheckStatus status); | 193 void UpdateAuthAccountCheckStatus(mojom::AccountCheckStatus status); |
| 193 | 194 |
| 194 // Outputs the stringified |result| to |os|. This is only for logging purposes. | 195 // Outputs the stringified |result| to |os|. This is only for logging purposes. |
| 195 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); | 196 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); |
| 196 | 197 |
| 197 } // namespace arc | 198 } // namespace arc |
| 198 | 199 |
| 199 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 200 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
| OLD | NEW |