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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1306653004: Expand FeatureList to support FieldTrial association. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Rob's comments. Created 5 years, 3 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 92917d86b573f066a90f912e1b560d46abcf54f3..192b348c420ae7910f1b3cd3cf0d4704b76ff7fe 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -680,9 +680,8 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
variations::VariationsService* variations_service =
browser_process_->variations_service();
if (variations_service)
- variations_service->CreateTrialsFromSeed();
+ variations_service->CreateTrialsFromSeed(feature_list.get());
- // TODO(asvitkine): Pass |feature_list| to CreateTrialsFromSeed() above.
base::FeatureList::SetInstance(feature_list.Pass());
// This must be called after |local_state_| is initialized.

Powered by Google App Engine
This is Rietveld 408576698