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())); |