Index: base/metrics/histogram_unittest.cc |
diff --git a/base/metrics/histogram_unittest.cc b/base/metrics/histogram_unittest.cc |
index 668ac1ba7e83ad47bfd107beb97e407bff57d1a8..5c2ca6883ae34f77bd011e5f1aa095f4d171174a 100644 |
--- a/base/metrics/histogram_unittest.cc |
+++ b/base/metrics/histogram_unittest.cc |
@@ -56,7 +56,7 @@ class HistogramTest : public testing::TestWithParam<bool> { |
void InitializeStatisticsRecorder() { |
DCHECK(!statistics_recorder_); |
- statistics_recorder_.reset(new StatisticsRecorder()); |
+ statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); |
} |
void UninitializeStatisticsRecorder() { |