Index: components/metrics/serialization/serialization_utils.cc |
diff --git a/components/metrics/serialization/serialization_utils.cc b/components/metrics/serialization/serialization_utils.cc |
index 5f03fe7f37222ea2dc01ee20789cdb26eeb14170..11f45a6661eb740c528d84b3de2c3e183af26ed0 100644 |
--- a/components/metrics/serialization/serialization_utils.cc |
+++ b/components/metrics/serialization/serialization_utils.cc |
@@ -152,7 +152,7 @@ void SerializationUtils::ReadAndTruncateMetricsFromFile( |
scoped_ptr<MetricSample> sample = ParseSample(message); |
if (sample) |
- metrics->push_back(sample.release()); |
+ metrics->push_back(sample.Pass()); |
} |
result = ftruncate(fd.get(), 0); |