Index: components/metrics/histogram_encoder_unittest.cc |
diff --git a/components/metrics/histogram_encoder_unittest.cc b/components/metrics/histogram_encoder_unittest.cc |
index fb1d47d2d28a2b112d74c083c1b6e7ab49e3f7de..2d50acdf645541b25ed81fc0a2318f3c46e58b9a 100644 |
--- a/components/metrics/histogram_encoder_unittest.cc |
+++ b/components/metrics/histogram_encoder_unittest.cc |
@@ -25,7 +25,7 @@ TEST(HistogramEncoder, HistogramBucketFields) { |
ranges.set_range(6, 11); |
ranges.set_range(7, 12); |
- base::SampleVector samples(&ranges); |
+ base::SampleVector samples(1, &ranges); |
samples.Accumulate(3, 1); // Bucket 1-5. |
samples.Accumulate(6, 1); // Bucket 5-7. |
samples.Accumulate(8, 1); // Bucket 8-9. (7-8 skipped) |