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

Unified Diff: base/metrics/statistics_recorder_unittest.cc

Issue 17451016: [UMA] Remove redundant bucket_count variable from base::Histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: base/metrics/statistics_recorder_unittest.cc
diff --git a/base/metrics/statistics_recorder_unittest.cc b/base/metrics/statistics_recorder_unittest.cc
index ea91e8e8e9b601e90b8658d429e789b26ffccefb..972bb637d1e792eb1f9777a62518b55af47cc8c6 100644
--- a/base/metrics/statistics_recorder_unittest.cc
+++ b/base/metrics/statistics_recorder_unittest.cc
@@ -36,7 +36,10 @@ class StatisticsRecorderTest : public testing::Test {
HistogramBase::Sample min,
HistogramBase::Sample max,
size_t bucket_count) {
- return new Histogram(name, min, max, bucket_count, NULL);
+ BucketRanges* ranges = new BucketRanges(bucket_count + 1);
+ const BucketRanges* registered_ranges =
+ StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges);
jar (doing other things) 2013/06/20 16:41:18 This tries to de-dup a set of ranges that are full
Ilya Sherman 2013/06/21 04:03:05 Done.
+ return new Histogram(name, min, max, registered_ranges);
}
void DeleteHistogram(HistogramBase* histogram) {

Powered by Google App Engine
This is Rietveld 408576698