From 993ae74a7291f89a21ddf7d5436e3e89091cae0d Mon Sep 17 00:00:00 2001 From: "kaiwang@chromium.org" Date: Wed, 18 Jul 2012 18:06:30 +0000 Subject: Change the FindHistogram interface of StatisticsRecorder Review URL: https://chromiumcodereview.appspot.com/10802002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147269 0039d316-1c4b-4281-b951-d872f2087c98 --- net/url_request/url_request_throttler_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net/url_request') diff --git a/net/url_request/url_request_throttler_unittest.cc b/net/url_request/url_request_throttler_unittest.cc index a082779..4721d4c 100644 --- a/net/url_request/url_request_throttler_unittest.cc +++ b/net/url_request/url_request_throttler_unittest.cc @@ -208,8 +208,8 @@ void URLRequestThrottlerEntryTest::SetUp() { // as other tests may affect them. const char* name = kHistogramNames[i]; Histogram::SampleSet& original = original_samples_[name]; - Histogram* histogram; - if (StatisticsRecorder::FindHistogram(name, &histogram)) { + Histogram* histogram = StatisticsRecorder::FindHistogram(name); + if (histogram) { histogram->SnapshotSample(&original); } } @@ -221,8 +221,8 @@ void URLRequestThrottlerEntryTest::CalculateHistogramDeltas() { Histogram::SampleSet& original = original_samples_[name]; Histogram::SampleSet& sample = samples_[name]; - Histogram* histogram; - if (StatisticsRecorder::FindHistogram(name, &histogram)) { + Histogram* histogram = StatisticsRecorder::FindHistogram(name); + if (histogram) { ASSERT_EQ(Histogram::kUmaTargetedHistogramFlag, histogram->flags()); histogram->SnapshotSample(&sample); -- cgit v1.1