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..44fe458488a0cd8a9ef8c2194aad5b2fbae8f952 100644 |
--- a/chrome/browser/metrics/variations/variations_service.cc |
+++ b/chrome/browser/metrics/variations/variations_service.cc |
@@ -257,6 +257,15 @@ void VariationsService::StartRepeatedVariationsSeedFetch() { |
request_scheduler_->Start(); |
} |
+// TODO(rkaplow): Handle this and the similar event in metrics_service by |
+// observing an 'OnAppEnterForeground' event in RequestScheduler instead of |
+// requiring the frontend code to notify each service individually. Since the |
+// scheduler will handle it directly the VariationService shouldn't need to |
+// know details of this anymore. |
+void VariationsService::OnAppEnterForeground() { |
+ request_scheduler_->OnAppEnterForeground(); |
+} |
+ |
// static |
GURL VariationsService::GetVariationsServerURL(PrefService* local_state) { |
std::string server_url_string(CommandLine::ForCurrentProcess()-> |