| Index: components/metrics/histogram_encoder.cc
|
| diff --git a/components/metrics/histogram_encoder.cc b/components/metrics/histogram_encoder.cc
|
| index 595fb5398674c9321a543a0d3b83c9836357365f..61f1d4a86b66ed1416dbd6b261a027f03e19e401 100644
|
| --- a/components/metrics/histogram_encoder.cc
|
| +++ b/components/metrics/histogram_encoder.cc
|
| @@ -4,9 +4,9 @@
|
|
|
| #include "components/metrics/histogram_encoder.h"
|
|
|
| +#include <memory>
|
| #include <string>
|
|
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "base/metrics/histogram.h"
|
| #include "base/metrics/histogram_samples.h"
|
| #include "base/metrics/metrics_hashes.h"
|
| @@ -28,8 +28,8 @@ void EncodeHistogramDelta(const std::string& histogram_name,
|
| if (snapshot.sum() != 0)
|
| histogram_proto->set_sum(snapshot.sum());
|
|
|
| - for (scoped_ptr<SampleCountIterator> it = snapshot.Iterator(); !it->Done();
|
| - it->Next()) {
|
| + for (std::unique_ptr<SampleCountIterator> it = snapshot.Iterator();
|
| + !it->Done(); it->Next()) {
|
| base::Histogram::Sample min;
|
| base::Histogram::Sample max;
|
| base::Histogram::Count count;
|
|
|