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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2302043002: Adding local field trial for metrics/crash reports sampling. (Closed)
Patch Set: Created 4 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 adc1045e14c3a1dbb54927da2a17b6d4026c00a1..6f595cd18139d710f5b962b289cd15091738bc7e 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -907,8 +907,12 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
variations::VariationsService* variations_service =
browser_process_->variations_service();
- if (variations_service)
- variations_service->CreateTrialsFromSeed(feature_list.get());
+
+ bool has_seed = variations_service &&
+ variations_service->CreateTrialsFromSeed(feature_list.get());
+
+ browser_field_trials_.SetupFeatureControllingFieldTrials(has_seed,
+ feature_list.get());
base::FeatureList::SetInstance(std::move(feature_list));
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/metrics/chrome_metrics_services_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698