Chromium Code Reviews| 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..7d1899329f4e14a89d9518edb7c089309f36aa4e 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::OnAppEnterForeground() { |
| + request_scheduler_->ScheduleFetch(); |
|
Alexei Svitkine (slow)
2014/02/12 21:17:44
In the ideal world, I'd actual have OnAppEnterFore
rkaplow
2014/02/12 22:51:52
I already have a TODO in the .h, I can have it her
|
| +} |
| + |
| // 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; |
| } |