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

Unified Diff: chrome/browser/metrics/variations/variations_service.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: ensure onappforeground fetch doesn't trigger if start already has 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.h
diff --git a/chrome/browser/metrics/variations/variations_service.h b/chrome/browser/metrics/variations/variations_service.h
index 0105081bbc90e2ed19b802f7ff4bf19aaa851d6b..bf76b048ae46f3b25465e9ec6cbecc97b0570a5c 100644
--- a/chrome/browser/metrics/variations/variations_service.h
+++ b/chrome/browser/metrics/variations/variations_service.h
@@ -57,6 +57,13 @@ class VariationsService
// static for test purposes.
static GURL GetVariationsServerURL(PrefService* local_prefs);
+ // Called when the application enters foreground. This may trigger a
+ // FetchVariationsSeed call.
+ // TODO(rkaplow): Handle this and the similar event in metrics_service by
+ // observing an 'OnAppEnterForeground' event instead of requiring the frontend
+ // code to notify each service individually.
+ void OnAppEnterForeground();
+
#if defined(OS_WIN)
// Starts syncing Google Update Variation IDs with the registry.
void StartGoogleUpdateRegistrySync();

Powered by Google App Engine
This is Rietveld 408576698