diff options
author | Luis Hector Chavez <lhchavez@google.com> | 2016-05-20 23:12:14 -0700 |
---|---|---|
committer | Luis Hector Chavez <lhchavez@google.com> | 2016-05-26 11:29:53 -0700 |
commit | 80b69d460f7c9f7a7c7434e29035739f325c33a2 (patch) | |
tree | 1ad1513b968f01cb50fc929d5a972ed257d7ecb3 | |
parent | 099f330f4dd55e50c9db5643314f8c47a423d789 (diff) | |
download | metricsd-80b69d460f7c9f7a7c7434e29035739f325c33a2.tar.gz |
core: Update libchrome APIs to r395517
The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.
Change-Id: I0a0e0441b6a7486ff0b42d11136254d8a536788f
-rw-r--r-- | uploader/metrics_log_base.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uploader/metrics_log_base.cc b/uploader/metrics_log_base.cc index 1a60b4f..f23bd63 100644 --- a/uploader/metrics_log_base.cc +++ b/uploader/metrics_log_base.cc @@ -16,6 +16,8 @@ #include "uploader/metrics_log_base.h" +#include <memory> + #include "base/build_time.h" #include "base/metrics/histogram_base.h" #include "base/metrics/histogram_samples.h" @@ -125,7 +127,7 @@ void MetricsLogBase::RecordHistogramDelta(const std::string& histogram_name, histogram_proto->set_name_hash(Hash(histogram_name)); histogram_proto->set_sum(snapshot.sum()); - for (scoped_ptr<SampleCountIterator> it = snapshot.Iterator(); !it->Done(); + for (std::unique_ptr<SampleCountIterator> it = snapshot.Iterator(); !it->Done(); it->Next()) { HistogramBase::Sample min; HistogramBase::Sample max; |