summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 18:06:30 +0000
committerkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 18:06:30 +0000
commit993ae74a7291f89a21ddf7d5436e3e89091cae0d (patch)
treed4f686676b943b046151431a09dd01aa761abda4 /net/url_request
parentc1f5b4143d01bcfa8a826338eebfe3503a28128e (diff)
downloadchromium_src-993ae74a7291f89a21ddf7d5436e3e89091cae0d.zip
chromium_src-993ae74a7291f89a21ddf7d5436e3e89091cae0d.tar.gz
chromium_src-993ae74a7291f89a21ddf7d5436e3e89091cae0d.tar.bz2
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
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_throttler_unittest.cc8
1 files changed, 4 insertions, 4 deletions
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);