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

Unified Diff: components/policy/core/common/cloud/device_management_service.cc

Issue 2886933003: Use stricter type checking in UMA_HISTOGRAM_ENUMERATION (Closed)
Patch Set: simplify type checking Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/core/journey_logger.cc ('k') | components/search_provider_logos/logo_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/device_management_service.cc
diff --git a/components/policy/core/common/cloud/device_management_service.cc b/components/policy/core/common/cloud/device_management_service.cc
index 1ed83ab10f05052b03ad6addce3fb850b3d16866..9a8b1445c81f45b0728f7b6632fa297f141aa111 100644
--- a/components/policy/core/common/cloud/device_management_service.cc
+++ b/components/policy/core/common/cloud/device_management_service.cc
@@ -300,9 +300,9 @@ void DeviceManagementRequestJobImpl::HandleResponse(
LOG(WARNING) << "DMServer sent an error response: " << response_code;
} else {
// Success with retries_count_ retries.
- UMA_HISTOGRAM_ENUMERATION("Enterprise.DMServerRequestSuccess",
- retries_count_,
- DMServerRequestSuccess::REQUEST_MAX);
+ UMA_HISTOGRAM_EXACT_LINEAR(
+ "Enterprise.DMServerRequestSuccess", retries_count_,
+ static_cast<int>(DMServerRequestSuccess::REQUEST_MAX));
}
switch (response_code) {
« no previous file with comments | « components/payments/core/journey_logger.cc ('k') | components/search_provider_logos/logo_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698