| 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 namespace base { | 8 namespace base { |
| 9 class TimeDelta; | 9 class TimeDelta; |
| 10 } | 10 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 CLOUD_PROVISION_FLOW_TIMEOUT = 14, | 72 CLOUD_PROVISION_FLOW_TIMEOUT = 14, |
| 73 CLOUD_PROVISION_FLOW_INTERNAL_ERROR = 15, | 73 CLOUD_PROVISION_FLOW_INTERNAL_ERROR = 15, |
| 74 | 74 |
| 75 // ARC instance is stopped during the sign in procedure. | 75 // ARC instance is stopped during the sign in procedure. |
| 76 ARC_STOPPED = 16, | 76 ARC_STOPPED = 16, |
| 77 | 77 |
| 78 // ARC instance did not report sign in status within a reasonable amount of | 78 // ARC instance did not report sign in status within a reasonable amount of |
| 79 // time. | 79 // time. |
| 80 OVERALL_SIGN_IN_TIMEOUT = 17, | 80 OVERALL_SIGN_IN_TIMEOUT = 17, |
| 81 | 81 |
| 82 // In Chrome, server communication error occurs. |
| 83 // For backward compatibility, the UMA is handled differently. Please see |
| 84 // ArcAuthService::OnProvisioningFinished for details. |
| 85 CHROME_SERVER_COMMUNICATION_ERROR = 18, |
| 86 |
| 82 // The size of this enum; keep last. | 87 // The size of this enum; keep last. |
| 83 SIZE, | 88 SIZE, |
| 84 }; | 89 }; |
| 85 | 90 |
| 86 void UpdateOptInActionUMA(OptInActionType type); | 91 void UpdateOptInActionUMA(OptInActionType type); |
| 87 void UpdateOptInCancelUMA(OptInCancelReason reason); | 92 void UpdateOptInCancelUMA(OptInCancelReason reason); |
| 88 void UpdateEnabledStateUMA(bool enabled); | 93 void UpdateEnabledStateUMA(bool enabled); |
| 89 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); | 94 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); |
| 90 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, | 95 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, |
| 91 bool success, | 96 bool success, |
| 92 bool managed); | 97 bool managed); |
| 93 | 98 |
| 94 } // namespace arc | 99 } // namespace arc |
| 95 | 100 |
| 96 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ | 101 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ |
| OLD | NEW |