Index: base/metrics/histogram.cc |
diff --git a/base/metrics/histogram.cc b/base/metrics/histogram.cc |
index 676b366fa59ab61ec5ff84d5fabac335fe2962b8..16ee8e7a778fb95e49b428cda7c043a7605df822 100644 |
--- a/base/metrics/histogram.cc |
+++ b/base/metrics/histogram.cc |
@@ -525,6 +525,7 @@ void Histogram::Accumulate(Sample value, Count count, size_t index) { |
void Histogram::SetBucketRange(size_t i, Sample value) { |
DCHECK_GT(bucket_count_, i); |
+ DCHECK_GE(value, 0); |
ranges_[i] = value; |
} |