summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Vakulenko <avakulenko@google.com>2016-03-17 14:29:26 -0700
committerAlex Vakulenko <avakulenko@google.com>2016-03-18 15:36:20 -0700
commit3d979292d8f83cfe879d479ff678ce5693b6b6dc (patch)
tree6647c9eedc4bf5bac3f7510ef695cc13b9363cb9
parent922e151ba2d8e1036849b3882917b5aef2cb431c (diff)
downloadcore-3d979292d8f83cfe879d479ff678ce5693b6b6dc.tar.gz
core-3d979292d8f83cfe879d479ff678ce5693b6b6dc.tar.bz2
core-3d979292d8f83cfe879d479ff678ce5693b6b6dc.zip
metricsd: Fix upload service to compile with new libchrome version
libmetric's HistogramSnapshotManager::PrepareDeltas now takes the iterators for the histogram collection to work on, instead of getting a global one. Change-Id: I3997ea7d2c330431379d055b0cb876069bddf395
-rw-r--r--metricsd/uploader/upload_service.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/metricsd/uploader/upload_service.cc b/metricsd/uploader/upload_service.cc
index 0dc59a44e..333a7e6aa 100644
--- a/metricsd/uploader/upload_service.cc
+++ b/metricsd/uploader/upload_service.cc
@@ -183,6 +183,7 @@ void UploadService::GatherHistograms() {
base::StatisticsRecorder::GetHistograms(&histograms);
histogram_snapshot_manager_.PrepareDeltas(
+ histograms.begin(), histograms.end(),
base::Histogram::kNoFlags, base::Histogram::kUmaTargetedHistogramFlag);
// Gather and reset the crash counters, shared with the binder threads.