Index: base/metrics/histogram_delta_serialization_unittest.cc |
diff --git a/base/metrics/histogram_delta_serialization_unittest.cc b/base/metrics/histogram_delta_serialization_unittest.cc |
index 80a70096716908312467e4fbcc94dacf859add23..719bc70970f63b3fbe3aceb8e6a6afa1d5d215e5 100644 |
--- a/base/metrics/histogram_delta_serialization_unittest.cc |
+++ b/base/metrics/histogram_delta_serialization_unittest.cc |
@@ -14,7 +14,8 @@ |
namespace base { |
TEST(HistogramDeltaSerializationTest, DeserializeHistogramAndAddSamples) { |
- StatisticsRecorder statistic_recorder; |
+ std::unique_ptr<StatisticsRecorder> statistic_recorder( |
+ StatisticsRecorder::CreateTemporaryForTesting()); |
HistogramDeltaSerialization serializer("HistogramDeltaSerializationTest"); |
std::vector<std::string> deltas; |
// Nothing was changed yet. |