| Index: chrome/browser/metrics/variations/variations_request_scheduler.h
|
| diff --git a/chrome/browser/metrics/variations/variations_request_scheduler.h b/chrome/browser/metrics/variations/variations_request_scheduler.h
|
| index beb3bbf6de55f6cd4a5865f754de2c5f7d0ef5da..7d811fc7a59d17cce0838eb8966c07cfb4f48c34 100644
|
| --- a/chrome/browser/metrics/variations/variations_request_scheduler.h
|
| +++ b/chrome/browser/metrics/variations/variations_request_scheduler.h
|
| @@ -19,7 +19,7 @@ class VariationsRequestScheduler {
|
| public:
|
| virtual ~VariationsRequestScheduler();
|
|
|
| - // Starts the task on a schedule.
|
| + // Starts the task. This can be a repeated event or a one-off.
|
| virtual void Start();
|
|
|
| // Resets the scheduler if it is currently on a timer.
|
| @@ -27,7 +27,11 @@ class VariationsRequestScheduler {
|
|
|
| // Schedules a fetch shortly, for example to re-try the initial request which
|
| // may have failed.
|
| - void ScheduleFetchShortly();
|
| + void ForceFetch();
|
| +
|
| + // Potentially fetch a new seed, depending on implementation. This may only
|
| + // fetch if there has not been one recently.
|
| + virtual void ScheduleFetch();
|
|
|
| // Factory method for this class.
|
| static VariationsRequestScheduler* Create(const base::Closure& task,
|
| @@ -42,7 +46,7 @@ class VariationsRequestScheduler {
|
|
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(VariationsRequestSchedulerTest,
|
| - ScheduleFetchShortly);
|
| + ForceFetch);
|
|
|
| // The task scheduled by this class.
|
| base::Closure task_;
|
|
|