| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 // ARC instance did not report sign in status within a reasonable amount of | 103 // ARC instance did not report sign in status within a reasonable amount of |
| 104 // time. | 104 // time. |
| 105 OVERALL_SIGN_IN_TIMEOUT = 17, | 105 OVERALL_SIGN_IN_TIMEOUT = 17, |
| 106 | 106 |
| 107 // In Chrome, server communication error occurs. | 107 // In Chrome, server communication error occurs. |
| 108 // For backward compatibility, the UMA is handled differently. Please see | 108 // For backward compatibility, the UMA is handled differently. Please see |
| 109 // ArcSessionManager::OnProvisioningFinished for details. | 109 // ArcSessionManager::OnProvisioningFinished for details. |
| 110 CHROME_SERVER_COMMUNICATION_ERROR = 18, | 110 CHROME_SERVER_COMMUNICATION_ERROR = 18, |
| 111 | 111 |
| 112 // Network connection is unavailable in ARC. |
| 113 NO_NETWORK_CONNECTION = 19, |
| 114 |
| 112 // The size of this enum; keep last. | 115 // The size of this enum; keep last. |
| 113 SIZE, | 116 SIZE, |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 void UpdateOptInActionUMA(OptInActionType type); | 119 void UpdateOptInActionUMA(OptInActionType type); |
| 117 void UpdateOptInCancelUMA(OptInCancelReason reason); | 120 void UpdateOptInCancelUMA(OptInCancelReason reason); |
| 118 void UpdateEnabledStateUMA(bool enabled); | 121 void UpdateEnabledStateUMA(bool enabled); |
| 119 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); | 122 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); |
| 120 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, | 123 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, |
| 121 bool success, | 124 bool success, |
| 122 bool managed); | 125 bool managed); |
| 123 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); | 126 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); |
| 124 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); | 127 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); |
| 125 void UpdateAuthCheckinAttempts(int32_t num_attempts); | 128 void UpdateAuthCheckinAttempts(int32_t num_attempts); |
| 126 | 129 |
| 127 // Outputs the stringified |result| to |os|. This is only for logging purposes. | 130 // Outputs the stringified |result| to |os|. This is only for logging purposes. |
| 128 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); | 131 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); |
| 129 | 132 |
| 130 } // namespace arc | 133 } // namespace arc |
| 131 | 134 |
| 132 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 135 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
| OLD | NEW |