diff options
Diffstat (limited to 'net/disk_cache/stats_histogram.cc')
-rw-r--r-- | net/disk_cache/stats_histogram.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/disk_cache/stats_histogram.cc b/net/disk_cache/stats_histogram.cc index 366a7e1..39c9056 100644 --- a/net/disk_cache/stats_histogram.cc +++ b/net/disk_cache/stats_histogram.cc @@ -15,6 +15,12 @@ using base::StatisticsRecorder; // Static. const Stats* StatsHistogram::stats_ = NULL; +StatsHistogram::~StatsHistogram() { + // Only cleanup what we set. + if (init_) + stats_ = NULL; +} + scoped_refptr<StatsHistogram> StatsHistogram::StatsHistogramFactoryGet( const std::string& name) { scoped_refptr<Histogram> histogram(NULL); @@ -59,12 +65,6 @@ bool StatsHistogram::Init(const Stats* stats) { return true; } -StatsHistogram::~StatsHistogram() { - // Only cleanup what we set. - if (init_) - stats_ = NULL; -} - Histogram::Sample StatsHistogram::ranges(size_t i) const { DCHECK(stats_); return stats_->GetBucketRange(i); |