Index: base/metrics/sparse_histogram_unittest.cc |
diff --git a/base/metrics/sparse_histogram_unittest.cc b/base/metrics/sparse_histogram_unittest.cc |
index fbff977522dc0668d35e04bb910dcaf567733621..eab779027656739fdeeb31749ce65e14ca2b915f 100644 |
--- a/base/metrics/sparse_histogram_unittest.cc |
+++ b/base/metrics/sparse_histogram_unittest.cc |
@@ -48,7 +48,7 @@ class SparseHistogramTest : public testing::TestWithParam<bool> { |
void InitializeStatisticsRecorder() { |
DCHECK(!statistics_recorder_); |
- statistics_recorder_.reset(new StatisticsRecorder()); |
+ statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); |
} |
void UninitializeStatisticsRecorder() { |