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