Index: base/metrics/histogram_base_unittest.cc |
diff --git a/base/metrics/histogram_base_unittest.cc b/base/metrics/histogram_base_unittest.cc |
index 5ce39cabe1f602fa6f01a2e94ac8493f3b44f138..1eb8fd46084ba2c82d396db9f810042b90376f5d 100644 |
--- a/base/metrics/histogram_base_unittest.cc |
+++ b/base/metrics/histogram_base_unittest.cc |
@@ -29,7 +29,7 @@ class HistogramBaseTest : public testing::Test { |
// It is necessary to fully destruct any existing StatisticsRecorder |
// before creating a new one. |
statistics_recorder_.reset(); |
- statistics_recorder_.reset(new StatisticsRecorder()); |
+ statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); |
} |
HistogramBase* GetCreationReportHistogram(const std::string& name) { |