Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Unified Diff: components/metrics/metrics_service.cc

Issue 658903002: Starting a refactor to allow adding metrics on upload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fixes Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/metrics/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index b6bb8f548f8a2e2ddf5d74eacab5b7f5d0f68d6e..7504a4f0611083b3755bbfc84fe48292df6daacd 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -849,6 +849,9 @@ void MetricsService::StartScheduledUpload() {
log_manager_.StageNextLogForUpload();
SendStagedLog();
} else {
+ for (size_t i = 0; i < metrics_providers_.size(); ++i)
+ metrics_providers_[i]->OnCollectFinalMetrics();
Alexei Svitkine (slow) 2014/10/17 18:30:52 Can you call this from DisableRecording() too? Pe
Maria 2014/10/17 21:44:50 It's a little weird I think to call onCollectFinal
Alexei Svitkine (slow) 2014/10/20 15:47:00 It's not done because CollectFinalMetrics() involv
+
client_->CollectFinalMetrics(
base::Bind(&MetricsService::OnFinalLogInfoCollectionDone,
self_ptr_factory_.GetWeakPtr()));
« chrome/browser/metrics/android_metrics_provider.cc ('K') | « components/metrics/metrics_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698