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

Unified Diff: chrome/browser/metrics/variations/variations_request_scheduler.h

Issue 147723010: Expose a method in VariationsService to trigger a seed fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alexei comments1 Created 6 years, 10 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: 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();
Alexei Svitkine (slow) 2014/02/13 16:13:08 Why did you rename this? I found the previous name
rkaplow 2014/02/13 16:55:59 Renaming was required when I had ScheduleFetch nam
+
+ // Potentially fetch a new seed, depending on implementation. This may only
+ // fetch if there has not been one recently.
+ virtual void ScheduleFetch();
Alexei Svitkine (slow) 2014/02/13 16:13:08 Actually, I'd prefer if this was also named OnAppE
rkaplow 2014/02/13 16:55:59 Done.
// 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_;

Powered by Google App Engine
This is Rietveld 408576698