diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 23:46:49 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 23:46:49 +0000 |
commit | 7aefb155470efae35c224f1ebb21f5ff893179f5 (patch) | |
tree | 6333871e5b8fdcfcafadefc95457e480c23fb8ad /net/disk_cache/stats_histogram.cc | |
parent | 9c678e93d80ab8ed8f52043e1096e2d08f97980e (diff) | |
download | chromium_src-7aefb155470efae35c224f1ebb21f5ff893179f5.zip chromium_src-7aefb155470efae35c224f1ebb21f5ff893179f5.tar.gz chromium_src-7aefb155470efae35c224f1ebb21f5ff893179f5.tar.bz2 |
More net/ header/implementation method reordering.
(Contains some minor de-inlining.)
BUG=68682
TEST=compiles
Review URL: http://codereview.chromium.org/6263010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72232 0039d316-1c4b-4281-b951-d872f2087c98
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); |