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) { |