Chromium Code Reviews

Unified Diff: base/metrics/histogram_samples.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant base:: prefix Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: base/metrics/histogram_samples.cc
diff --git a/base/metrics/histogram_samples.cc b/base/metrics/histogram_samples.cc
index 246a020495222be9806c90e36c153d378fe8d854..d42bd00fce7d932c690bca6692db13a6c2ba4144 100644
--- a/base/metrics/histogram_samples.cc
+++ b/base/metrics/histogram_samples.cc
@@ -141,8 +141,7 @@ bool HistogramSamples::Serialize(Pickle* pickle) const {
HistogramBase::Sample min;
HistogramBase::Sample max;
HistogramBase::Count count;
- for (scoped_ptr<SampleCountIterator> it = Iterator();
- !it->Done();
+ for (std::unique_ptr<SampleCountIterator> it = Iterator(); !it->Done();
it->Next()) {
it->Get(&min, &max, &count);
if (!pickle->WriteInt(min) ||

Powered by Google App Engine