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

Side by Side Diff: chrome/browser/chromeos/arc/arc_optin_uma.h

Issue 2705213002: Show different error message if ARC is disabled. (Closed)
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 112 // Network connection is unavailable in ARC.
113 NO_NETWORK_CONNECTION = 19, 113 NO_NETWORK_CONNECTION = 19,
114 114
115 // ARC is not enabled.
116 ARC_DISABLED = 20,
117
115 // The size of this enum; keep last. 118 // The size of this enum; keep last.
116 SIZE, 119 SIZE,
117 }; 120 };
118 121
119 void UpdateOptInActionUMA(OptInActionType type); 122 void UpdateOptInActionUMA(OptInActionType type);
120 void UpdateOptInCancelUMA(OptInCancelReason reason); 123 void UpdateOptInCancelUMA(OptInCancelReason reason);
121 void UpdateEnabledStateUMA(bool enabled); 124 void UpdateEnabledStateUMA(bool enabled);
122 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); 125 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed);
123 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, 126 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time,
124 bool success, 127 bool success,
125 bool managed); 128 bool managed);
126 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); 129 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state);
127 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time); 130 void UpdateAuthTiming(const char* histogram_name, base::TimeDelta elapsed_time);
128 void UpdateAuthCheckinAttempts(int32_t num_attempts); 131 void UpdateAuthCheckinAttempts(int32_t num_attempts);
129 132
130 // Outputs the stringified |result| to |os|. This is only for logging purposes. 133 // Outputs the stringified |result| to |os|. This is only for logging purposes.
131 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); 134 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result);
132 135
133 } // namespace arc 136 } // namespace arc
134 137
135 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ 138 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/arc_optin_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698