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

Unified Diff: base/android/record_histogram.cc

Issue 2675883002: Fixing mismatch between expected and declared minimum values. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/record_histogram.cc
diff --git a/base/android/record_histogram.cc b/base/android/record_histogram.cc
index 5679762ee07c1ecc0b604bb842d20e9323a67ec5..fe8403ee1c428de416128e316395204cbb21ee4c 100644
--- a/base/android/record_histogram.cc
+++ b/base/android/record_histogram.cc
@@ -53,12 +53,15 @@ class HistogramCache {
jstring j_histogram_name,
int32_t expected_min,
int32_t expected_max,
- int32_t expected_bucket_count,
+ uint32_t expected_bucket_count,
HistogramBase* histogram) {
+ std::string histogram_name = ConvertJavaStringToUTF8(env, j_histogram_name);
+ Histogram::InspectConstructionArguments(
Alexei Svitkine (slow) 2017/02/07 18:00:44 Can you assign the return value to a var and DCHEC
+ histogram_name, &expected_min, &expected_max, &expected_bucket_count);
DCHECK(histogram->HasConstructionArguments(expected_min, expected_max,
expected_bucket_count))
- << ConvertJavaStringToUTF8(env, j_histogram_name) << "/" << expected_min
- << "/" << expected_max << "/" << expected_bucket_count << " vs. "
+ << histogram_name << "/" << expected_min << "/" << expected_max << "/"
+ << expected_bucket_count << " vs. "
<< HistogramConstructionParamsToString(histogram);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698