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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 880263005: Initialize variations seed fetching via OnAppEnterForeground. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/variations_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 998c36218d2d464397af86505576ba5a441f542a..be50f720e7d6e1fe20f9d85947c8596da4d27352 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1503,8 +1503,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
chrome_variations::VariationsService* variations_service =
browser_process_->variations_service();
if (variations_service) {
+ // Just initialize the policy prefs service here. Variations seed fetching
+ // will be initialized when the app enters foreground mode.
variations_service->set_policy_pref_service(profile_->GetPrefs());
- variations_service->StartRepeatedVariationsSeedFetch();
}
translate::TranslateDownloadManager::RequestLanguageList(
profile_->GetPrefs());
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698