LeOSium_webview/mulch/patches/0001-Vanadium/0016-disable-seed-based-fie...

31 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2023-11-18 11:46:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Tue, 25 Dec 2018 16:19:51 -0500
Subject: [PATCH] disable seed-based field trials
---
.../variations/service/variations_field_trial_creator_base.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/components/variations/service/variations_field_trial_creator_base.cc b/components/variations/service/variations_field_trial_creator_base.cc
index 1684ca313ab4b..737741a938d94 100644
--- a/components/variations/service/variations_field_trial_creator_base.cc
+++ b/components/variations/service/variations_field_trial_creator_base.cc
@@ -298,12 +298,16 @@ bool VariationsFieldTrialCreatorBase::SetUpFieldTrials(
bool used_seed = false;
if (!used_testing_config) {
+#if defined(FIELDTRIAL_SEED_ENABLED)
used_seed = CreateTrialsFromSeed(*entropy_providers, feature_list.get(),
safe_seed_manager);
+#endif
}
+#if defined(FIELDTRIAL_SEED_ENABLED)
platform_field_trials->SetUpClientSideFieldTrials(
used_seed, *entropy_providers, feature_list.get());
+#endif
platform_field_trials->RegisterFeatureOverrides(feature_list.get());