38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Tue, 25 Dec 2018 16:19:51 -0500
|
|
Subject: Disable seed-based field trials
|
|
|
|
---
|
|
.../variations/service/variations_field_trial_creator.cc | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/components/variations/service/variations_field_trial_creator.cc b/components/variations/service/variations_field_trial_creator.cc
|
|
--- a/components/variations/service/variations_field_trial_creator.cc
|
|
+++ b/components/variations/service/variations_field_trial_creator.cc
|
|
@@ -258,8 +258,8 @@ bool VariationsFieldTrialCreator::SetupFieldTrials(
|
|
// instance is set.
|
|
feature_list->RegisterExtraFeatureOverrides(extra_overrides);
|
|
|
|
- bool used_testing_config = false;
|
|
#if BUILDFLAG(FIELDTRIAL_TESTING_ENABLED)
|
|
+ bool used_testing_config = false;
|
|
if (!command_line->HasSwitch(switches::kDisableFieldTrialTestingConfig) &&
|
|
!command_line->HasSwitch(::switches::kForceFieldTrials) &&
|
|
!command_line->HasSwitch(switches::kVariationsServerURL)) {
|
|
@@ -273,10 +273,12 @@ bool VariationsFieldTrialCreator::SetupFieldTrials(
|
|
}
|
|
#endif // BUILDFLAG(FIELDTRIAL_TESTING_ENABLED)
|
|
bool used_seed = false;
|
|
+#if defined(FIELDTRIAL_SEED_ENABLED)
|
|
if (!used_testing_config) {
|
|
used_seed = CreateTrialsFromSeed(low_entropy_provider.get(),
|
|
feature_list.get(), safe_seed_manager);
|
|
}
|
|
+#endif // BUILDFLAG(FIELDTRIAL_SEED_ENABLED)
|
|
|
|
platform_field_trials->SetupFeatureControllingFieldTrials(
|
|
used_seed, low_entropy_provider.get(), feature_list.get());
|
|
--
|
|
2.17.1
|
|
|