From 623ce74c83aef121e0173737171ae48533e92714 Mon Sep 17 00:00:00 2001 From: Luis Hector Chavez Date: Fri, 20 May 2016 23:12:14 -0700 Subject: [PATCH] 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 --- libbinderwrapper/real_binder_wrapper.h | 2 ++ metricsd/uploader/metrics_log_base.cc | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libbinderwrapper/real_binder_wrapper.h b/libbinderwrapper/real_binder_wrapper.h index 1675432f3..fa05383fb 100644 --- a/libbinderwrapper/real_binder_wrapper.h +++ b/libbinderwrapper/real_binder_wrapper.h @@ -17,6 +17,8 @@ #ifndef SYSTEM_CORE_LIBBINDERWRAPPER_REAL_BINDER_WRAPPER_H_ #define SYSTEM_CORE_LIBBINDERWRAPPER_REAL_BINDER_WRAPPER_H_ +#include + #include #include diff --git a/metricsd/uploader/metrics_log_base.cc b/metricsd/uploader/metrics_log_base.cc index 1a60b4fda..f23bd63fc 100644 --- a/metricsd/uploader/metrics_log_base.cc +++ b/metricsd/uploader/metrics_log_base.cc @@ -16,6 +16,8 @@ #include "uploader/metrics_log_base.h" +#include + #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 it = snapshot.Iterator(); !it->Done(); + for (std::unique_ptr it = snapshot.Iterator(); !it->Done(); it->Next()) { HistogramBase::Sample min; HistogramBase::Sample max;