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

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

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: 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.cc
diff --git a/chrome/browser/metrics/variations/variations_request_scheduler.cc b/chrome/browser/metrics/variations/variations_request_scheduler.cc
index ff437a8c9d450aa7a78fac1127e4e05bc15b1048..d6aabbe9f1e4649c56ba421cdabd10d605ef1065 100644
--- a/chrome/browser/metrics/variations/variations_request_scheduler.cc
+++ b/chrome/browser/metrics/variations/variations_request_scheduler.cc
@@ -36,6 +36,11 @@ void VariationsRequestScheduler::ScheduleFetchShortly() {
task_);
}
+void VariationsRequestScheduler::OnAppEnterForeground() {
+ // By default (non-mobile) we can reuse ScheduleFetchShortly.
Alexei Svitkine (slow) 2014/02/13 17:36:22 I would actually make the implementation of this b
rkaplow 2014/02/13 18:54:47 Yeah that seems safer actually. Is this all that i
+ ScheduleFetchShortly();
+}
+
base::Closure VariationsRequestScheduler::task() const {
return task_;
}

Powered by Google App Engine
This is Rietveld 408576698