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

Unified Diff: chrome/browser/chromeos/policy/upload_job_impl.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
Index: chrome/browser/chromeos/policy/upload_job_impl.cc
diff --git a/chrome/browser/chromeos/policy/upload_job_impl.cc b/chrome/browser/chromeos/policy/upload_job_impl.cc
index 834294e60349d395f72ba814bcf9477363215ef9..9d8c69cfcf2c41529a77c9f95c09b28dc414bc01 100644
--- a/chrome/browser/chromeos/policy/upload_job_impl.cc
+++ b/chrome/browser/chromeos/policy/upload_job_impl.cc
@@ -411,8 +411,9 @@ void UploadJobImpl::OnURLFetchComplete(const net::URLFetcher* source) {
access_token_.clear();
post_data_.reset();
state_ = SUCCESS;
- UMA_HISTOGRAM_ENUMERATION(kUploadJobSuccessHistogram, retry_,
- UploadJobSuccess::REQUEST_MAX);
+ UMA_HISTOGRAM_EXACT_LINEAR(
+ kUploadJobSuccessHistogram, retry_,
+ static_cast<int>(UploadJobSuccess::REQUEST_MAX));
delegate_->OnSuccess();
} else if (response_code == net::HTTP_UNAUTHORIZED) {
SYSLOG(ERROR) << "Unauthorized request.";
« no previous file with comments | « chrome/browser/chromeos/login/screens/reset_screen.cc ('k') | chrome/browser/diagnostics/diagnostics_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698