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

Unified Diff: components/metrics/metrics_upload_scheduler.cc

Issue 2608833002: Move logic for uploading logs into a ReportingService object. (Closed)
Patch Set: Rebase again Created 3 years, 9 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
« no previous file with comments | « components/metrics/metrics_upload_scheduler.h ('k') | components/metrics/reporting_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_upload_scheduler.cc
diff --git a/components/metrics/metrics_upload_scheduler.cc b/components/metrics/metrics_upload_scheduler.cc
index 11adf9ed9a295d1dfba13e7ff6c809b308572eec..22e1f2d72d8d40275f2fcb089a31265b4f3ba119 100644
--- a/components/metrics/metrics_upload_scheduler.cc
+++ b/components/metrics/metrics_upload_scheduler.cc
@@ -104,18 +104,4 @@ void MetricsUploadScheduler::UploadOverDataUsageCap() {
TaskDone(base::TimeDelta::FromMinutes(kOverDataUsageIntervalMinutes));
}
-void MetricsUploadScheduler::LogActualUploadInterval(base::TimeDelta interval) {
- UMA_HISTOGRAM_CUSTOM_COUNTS("UMA.ActualLogUploadInterval",
- interval.InMinutes(), 1,
- base::TimeDelta::FromHours(12).InMinutes(), 50);
-}
-
-void MetricsUploadScheduler::TriggerTask() {
- if (!last_upload_finish_time_.is_null()) {
- LogActualUploadInterval(base::TimeTicks::Now() - last_upload_finish_time_);
- last_upload_finish_time_ = base::TimeTicks();
- }
- MetricsScheduler::TriggerTask();
-}
-
} // namespace metrics
« no previous file with comments | « components/metrics/metrics_upload_scheduler.h ('k') | components/metrics/reporting_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698