Disable Chromium field trials in official builds (fixes #3560)

This commit is contained in:
Marshall Greenblatt 2023-08-30 13:21:06 -04:00
parent 5f8d100619
commit 0726eefbe0
1 changed files with 12 additions and 8 deletions

View File

@ -466,12 +466,16 @@ def GetConfigArgs(args, is_debug, cpu):
""" """
add_args = {} add_args = {}
if GetArgValue(args, 'is_official_build'):
# Disable Chromium field trials in official builds.
add_args['disable_fieldtrial_testing_config'] = True
# Cannot create is_official_build=true is_debug=true builds. # Cannot create is_official_build=true is_debug=true builds.
# This restriction is enforced in //build/config/BUILDCONFIG.gn. # This restriction is enforced in //build/config/BUILDCONFIG.gn.
# Instead, our "official Debug" build is a Release build with dchecks and # Instead, our "official Debug" build is a Release build with dchecks and
# symbols. Symbols will be generated by default for official builds; see the # symbols. Symbols will be generated by default for official builds; see the
# definition of 'symbol_level' in //build/config/compiler/compiler.gni. # definition of 'symbol_level' in //build/config/compiler/compiler.gni.
if is_debug and GetArgValue(args, 'is_official_build'): if is_debug:
is_debug = False is_debug = False
add_args['dcheck_always_on'] = True add_args['dcheck_always_on'] = True