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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2288853003: Adding local field trial for metrics/crash reports sampling. (Closed)
Patch Set: Created 4 years, 4 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 a0600754d5bbddbcdfdc38ae6995e5e3e9248ee4..dfcd7152f92c3c8357a5d7c925f9103eb0049924 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -907,8 +907,13 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
variations::VariationsService* variations_service =
browser_process_->variations_service();
- if (variations_service)
- variations_service->CreateTrialsFromSeed(feature_list.get());
+ bool has_seed = false;
Lei Zhang 2016/08/30 21:31:28 How about: bool has_seed = variations_service &&
jwd 2016/08/30 21:46:24 Done.
+ if (variations_service) {
+ has_seed = 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