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

Unified Diff: net/disk_cache/blockfile/stats.cc

Issue 1471073007: Reorganize histograms for persistence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shmem-alloc
Patch Set: added GN changes Created 5 years, 1 month 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: net/disk_cache/blockfile/stats.cc
diff --git a/net/disk_cache/blockfile/stats.cc b/net/disk_cache/blockfile/stats.cc
index bb319f55b152314f2ba39ac05c522d9290ed81df..4743ee611c49d5d2f444ff95a086c33f0b34497d 100644
--- a/net/disk_cache/blockfile/stats.cc
+++ b/net/disk_cache/blockfile/stats.cc
@@ -150,7 +150,7 @@ void Stats::InitSizeHistogram() {
"DiskCache.SizeStats2", min, max, num_buckets,
base::HistogramBase::kUmaTargetedHistogramFlag);
- base::SampleVector samples(&ranges);
+ base::SampleVector samples(0, &ranges);
for (int i = 0; i < kDataSizesLength; i++) {
// This is a good time to fix any inconsistent data. The count should be
// always positive, but if it's not, reset the value now.

Powered by Google App Engine
This is Rietveld 408576698