From 7aefb155470efae35c224f1ebb21f5ff893179f5 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Fri, 21 Jan 2011 23:46:49 +0000 Subject: 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 --- net/disk_cache/stats_histogram.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'net/disk_cache/stats_histogram.cc') 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::StatsHistogramFactoryGet( const std::string& name) { scoped_refptr 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); -- cgit v1.1