From 3d979292d8f83cfe879d479ff678ce5693b6b6dc Mon Sep 17 00:00:00 2001 From: Alex Vakulenko Date: Thu, 17 Mar 2016 14:29:26 -0700 Subject: [PATCH] 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 --- metricsd/uploader/upload_service.cc | 1 + 1 file changed, 1 insertion(+) 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.