| Index: net/disk_cache/stats_histogram.cc
|
| diff --git a/net/disk_cache/stats_histogram.cc b/net/disk_cache/stats_histogram.cc
|
| index 366a7e118d25bf9b5ec698382f8a0f8b7640ca06..39c9056eb2ae2e5e3f1dd3047cf77f1bab1b9739 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);
|
|
|