tools/variations/fieldtrial_util.py
def _FindFeaturesOverriddenByArgs(args):
  """Returns a list of the features enabled or disabled by the flags in args."""
  overridden_features = []
  for arg in args:
    if (arg.startswith('--enable-features=')
        or arg.startswith('--disable-features=')):
      _, _, arg_val = arg.partition('=')
      overridden_features.extend(arg_val.split(','))
  return [f.split('<')[0] for f in overridden_features]
Returns a list of the features enabled or disabled by the flags in args.
Returns a list of the features enabled or disabled by the flags in args.
Returns a list of the features enabled or disabled by the flags in args .
def _FindFeaturesOverriddenByArgs(args):
  overridden_features = []
  for arg in args:
    if (arg.startswith('--enable-features=')
        or arg.startswith('--disable-features=')):
      _, _, arg_val = arg.partition('=')
      overridden_features.extend(arg_val.split(','))
  return [f.split('<')[0] for f in overridden_features]
def _FindFeaturesOverriddenByArgs ( args ) : overridden_features = [ ] for arg in args : if ( arg . startswith ( '--enable-features=' ) or arg . startswith ( '--disable-features=' ) ) : _ , _ , arg_val = arg . partition ( '=' ) overridden_features . extend ( arg_val . split ( ',' ) ) return [ f . split ( '<' ) [ 0 ] for f in overridden_features ]
Returns a list of the features enabled or disabled by the flags in args.
Returns a list of the features enabled or disabled by the flags in args .
"""Returns a list of the features enabled or disabled by the flags in args."""
args