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

Unified Diff: chrome/browser/metrics/variations/variations_service.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_service.cc
diff --git a/chrome/browser/metrics/variations/variations_service.cc b/chrome/browser/metrics/variations/variations_service.cc
index 1494d3bdab94aaff185911e0fbf9a5968b783cdd..12ed36925c927e3e80c77df7e53f61a3c6d94337 100644
--- a/chrome/browser/metrics/variations/variations_service.cc
+++ b/chrome/browser/metrics/variations/variations_service.cc
@@ -257,6 +257,10 @@ void VariationsService::StartRepeatedVariationsSeedFetch() {
request_scheduler_->Start();
}
+void VariationsService::ScheduleFetch() {
+ request_scheduler_->ScheduleFetch();
+}
+
// static
GURL VariationsService::GetVariationsServerURL(PrefService* local_state) {
std::string server_url_string(CommandLine::ForCurrentProcess()->
@@ -375,7 +379,7 @@ void VariationsService::OnURLFetchComplete(const net::URLFetcher* source) {
// may not yet be available). In such a case, try again soon, rather than
// waiting the full time interval.
if (is_first_request)
- request_scheduler_->ScheduleFetchShortly();
+ request_scheduler_->ForceFetch();
return;
}

Powered by Google App Engine
This is Rietveld 408576698