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

Unified Diff: components/tracing/child/child_trace_message_filter.cc

Issue 2853853002: Fix overflow when logging MaxInt32 to a sparse histogram. (Closed)
Patch Set: Address comments. Created 3 years, 8 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: components/tracing/child/child_trace_message_filter.cc
diff --git a/components/tracing/child/child_trace_message_filter.cc b/components/tracing/child/child_trace_message_filter.cc
index 2cd76dc7b2a29242940e57591919b20ed36d828a..ce9c86f75f6ad48325a7445dc0b63e20016488eb 100644
--- a/components/tracing/child/child_trace_message_filter.cc
+++ b/components/tracing/child/child_trace_message_filter.cc
@@ -202,7 +202,7 @@ void ChildTraceMessageFilter::OnSetUMACallback(
while (!sample_iterator->Done()) {
base::HistogramBase::Sample min;
- base::HistogramBase::Sample max;
+ int64_t max;
base::HistogramBase::Count count;
sample_iterator->Get(&min, &max, &count);
« no previous file with comments | « components/metrics/histogram_encoder.cc ('k') | components/translate/core/common/translate_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698