| 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 namespace base { | 10 namespace base { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 void UpdateOptInActionUMA(OptInActionType type); | 116 void UpdateOptInActionUMA(OptInActionType type); |
| 117 void UpdateOptInCancelUMA(OptInCancelReason reason); | 117 void UpdateOptInCancelUMA(OptInCancelReason reason); |
| 118 void UpdateEnabledStateUMA(bool enabled); | 118 void UpdateEnabledStateUMA(bool enabled); |
| 119 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); | 119 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); |
| 120 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, | 120 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, |
| 121 bool success, | 121 bool success, |
| 122 bool managed); | 122 bool managed); |
| 123 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); | 123 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); |
| 124 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); |
| 125 void UpdateAuthCheckinAttempts(int32_t num_attempts); |
| 124 | 126 |
| 125 // Outputs the stringified |result| to |os|. This is only for logging purposes. | 127 // Outputs the stringified |result| to |os|. This is only for logging purposes. |
| 126 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); | 128 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); |
| 127 | 129 |
| 128 } // namespace arc | 130 } // namespace arc |
| 129 | 131 |
| 130 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 132 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
| OLD | NEW |