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

Unified Diff: components/metrics/metrics_reporting_scheduler.h

Issue 979363003: UMA: use a more frequent upload interval for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes conditional Created 5 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
Index: components/metrics/metrics_reporting_scheduler.h
diff --git a/components/metrics/metrics_reporting_scheduler.h b/components/metrics/metrics_reporting_scheduler.h
index ddfe651d3ee29f3f87b26fbd729ed723592fc635..4d6102a14e7dfa815df518f323c70fb2af4853a8 100644
--- a/components/metrics/metrics_reporting_scheduler.h
+++ b/components/metrics/metrics_reporting_scheduler.h
@@ -18,11 +18,12 @@ namespace metrics {
class MetricsReportingScheduler {
public:
// Creates MetricsServiceScheduler object with the given |upload_callback|
- // callback to call when uploading should happen and |cellular_callback|
- // callback to get current network connection type.
+ // callback to call when uploading should happen and
+ // |upload_interval_callback| to determine the interval between uploads
+ // in steady state.
MetricsReportingScheduler(
const base::Closure& upload_callback,
- const base::Callback<void(bool*)>& cellular_callback);
+ const base::Callback<base::TimeDelta(void)>& upload_interval_callback);
~MetricsReportingScheduler();
// Starts scheduling uploads. This in a no-op if the scheduler is already
@@ -57,10 +58,7 @@ class MetricsReportingScheduler {
// where the server is having issues.
void BackOffUploadInterval();
- // Returns upload interval based on the system and experiment that the user is
- // assigned to.
- // TODO(gayane): Only for experimenting with upload interval for Android
- // (bug: 17391128). Should be removed once the experiments are done.
+ // Returns upload interval to use in steady state.
base::TimeDelta GetStandardUploadInterval();
// The MetricsService method to call when uploading should happen.
@@ -90,8 +88,8 @@ class MetricsReportingScheduler {
// has been completed.
bool waiting_for_init_task_complete_;
- // Callback function used to get current network connection type.
- base::Callback<void(bool*)> cellular_callback_;
+ // Callback function used to get the standard upload time.
+ base::Callback<base::TimeDelta(void)> upload_interval_callback_;
DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler);
};
« no previous file with comments | « chromecast/browser/metrics/cast_metrics_service_client.cc ('k') | components/metrics/metrics_reporting_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698