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

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

Issue 2704383006: arc: Handle metrics for Auth operations. (Closed)
Patch Set: Created 3 years, 10 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 #include <string>
9 10
10 namespace base { 11 namespace base {
11 class TimeDelta; 12 class TimeDelta;
12 } 13 }
13 14
14 namespace arc { 15 namespace arc {
15 16
16 // These enums are used to define the buckets for an enumerated UMA histogram 17 // These enums are used to define the buckets for an enumerated UMA histogram
17 // and need to be synced with histograms.xml 18 // and need to be synced with histograms.xml
18 enum class OptInActionType : int { 19 enum class OptInActionType : int {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 }; 115 };
115 116
116 void UpdateOptInActionUMA(OptInActionType type); 117 void UpdateOptInActionUMA(OptInActionType type);
117 void UpdateOptInCancelUMA(OptInCancelReason reason); 118 void UpdateOptInCancelUMA(OptInCancelReason reason);
118 void UpdateEnabledStateUMA(bool enabled); 119 void UpdateEnabledStateUMA(bool enabled);
119 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed); 120 void UpdateProvisioningResultUMA(ProvisioningResult result, bool managed);
120 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time, 121 void UpdateProvisioningTiming(const base::TimeDelta& elapsed_time,
121 bool success, 122 bool success,
122 bool managed); 123 bool managed);
123 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state); 124 void UpdateSilentAuthCodeUMA(OptInSilentAuthCode state);
125 void UpdateAuthTiming(const std::string& key,
126 const base::TimeDelta& elapsed_time);
127 void UpdateAuthAttempts(const std::string& key, int32_t value);
124 128
125 // Outputs the stringified |result| to |os|. This is only for logging purposes. 129 // Outputs the stringified |result| to |os|. This is only for logging purposes.
126 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result); 130 std::ostream& operator<<(std::ostream& os, const ProvisioningResult& result);
127 131
128 } // namespace arc 132 } // namespace arc
129 133
130 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_ 134 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_OPTIN_UMA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698