Index: base/metrics/histogram.cc |
diff --git a/base/metrics/histogram.cc b/base/metrics/histogram.cc |
index 0a4fcc043d4a9c983ae69dc4352d216adc1176fb..fe5b6e6117cb7069c5263ee673be0e2126ad7cc0 100644 |
--- a/base/metrics/histogram.cc |
+++ b/base/metrics/histogram.cc |
@@ -268,7 +268,7 @@ void Histogram::Add(int value) { |
} |
scoped_ptr<HistogramSamples> Histogram::SnapshotSamples() const { |
- return SnapshotSampleVector().PassAs<HistogramSamples>(); |
+ return SnapshotSampleVector().Pass(); |
} |
void Histogram::AddSamples(const HistogramSamples& samples) { |
@@ -369,7 +369,7 @@ HistogramBase* Histogram::DeserializeInfoImpl(PickleIterator* iter) { |
scoped_ptr<SampleVector> Histogram::SnapshotSampleVector() const { |
scoped_ptr<SampleVector> samples(new SampleVector(bucket_ranges())); |
samples->Add(*samples_); |
- return samples.Pass(); |
+ return samples; |
danakj
2014/10/15 17:20:08
Oh that's cool I didn't realize we can do that now
|
} |
void Histogram::WriteAsciiImpl(bool graph_it, |