tools/variations/split_variations_cmd.py
def SplitVariationsCmd(results):
  """Splits internal representation of commandline switches into two.

  This function can be called recursively when bisecting a set of experiments
  until one is identified to be responsble for a certain browser behavior.

  The commandline switches come from chrome://version/?show-variations-cmd.
  """
  enable_features = results.get(_ENABLE_FEATURES_SWITCH_NAME, [])
  disable_features = results.get(_DISABLE_FEATURES_SWITCH_NAME, [])
  field_trials = results.get(_FORCE_FIELD_TRIALS_SWITCH_NAME, [])
  field_trial_params = results.get(_FORCE_FIELD_TRIAL_PARAMS_SWITCH_NAME, [])
  enable_features_splits = _SplitFeatures(enable_features)
  disable_features_splits = _SplitFeatures(disable_features)
  field_trials_splits = _SplitFieldTrials(field_trials, field_trial_params)
  splits = []
  for index in range(2):
    cmd_line = {}
    cmd_line.update(field_trials_splits[index])
    cmd_line[_ENABLE_FEATURES_SWITCH_NAME] = enable_features_splits[index]
    cmd_line[_DISABLE_FEATURES_SWITCH_NAME] = disable_features_splits[index]
    splits.append(cmd_line)
  return splits
Splits internal representation of commandline switches into two.

  This function can be called recursively when bisecting a set of experiments
  until one is identified to be responsble for a certain browser behavior.

  The commandline switches come from chrome://version/?show-variations-cmd.
  
Splits internal representation of commandline switches into two.
This function can be called recursively when bisecting a set of experiments
until one is identified to be responsble for a certain browser behavior.

The commandline switches come from chrome://version/?show-variations-cmd.
Splits internal representation of commandline switches into two . This function can be called recursively when bisecting a set of experiments until one is identified to be responsble for a certain browser behavior . The commandline switches come from chrome : // version / ?show - variations - cmd .
def SplitVariationsCmd(results):
  enable_features = results.get(_ENABLE_FEATURES_SWITCH_NAME, [])
  disable_features = results.get(_DISABLE_FEATURES_SWITCH_NAME, [])
  field_trials = results.get(_FORCE_FIELD_TRIALS_SWITCH_NAME, [])
  field_trial_params = results.get(_FORCE_FIELD_TRIAL_PARAMS_SWITCH_NAME, [])
  enable_features_splits = _SplitFeatures(enable_features)
  disable_features_splits = _SplitFeatures(disable_features)
  field_trials_splits = _SplitFieldTrials(field_trials, field_trial_params)
  splits = []
  for index in range(2):
    cmd_line = {}
    cmd_line.update(field_trials_splits[index])
    cmd_line[_ENABLE_FEATURES_SWITCH_NAME] = enable_features_splits[index]
    cmd_line[_DISABLE_FEATURES_SWITCH_NAME] = disable_features_splits[index]
    splits.append(cmd_line)
  return splits
def SplitVariationsCmd ( results ) : enable_features = results . get ( _ENABLE_FEATURES_SWITCH_NAME , [ ] ) disable_features = results . get ( _DISABLE_FEATURES_SWITCH_NAME , [ ] ) field_trials = results . get ( _FORCE_FIELD_TRIALS_SWITCH_NAME , [ ] ) field_trial_params = results . get ( _FORCE_FIELD_TRIAL_PARAMS_SWITCH_NAME , [ ] ) enable_features_splits = _SplitFeatures ( enable_features ) disable_features_splits = _SplitFeatures ( disable_features ) field_trials_splits = _SplitFieldTrials ( field_trials , field_trial_params ) splits = [ ] for index in range ( 2 ) : cmd_line = { } cmd_line . update ( field_trials_splits [ index ] ) cmd_line [ _ENABLE_FEATURES_SWITCH_NAME ] = enable_features_splits [ index ] cmd_line [ _DISABLE_FEATURES_SWITCH_NAME ] = disable_features_splits [ index ] splits . append ( cmd_line ) return splits
Splits internal representation of commandline switches into two.
Splits internal representation of commandline switches into two .
"""Splits internal representation of commandline switches into two.

  This function can be called recursively when bisecting a set of experiments
  until one is identified to be responsble for a certain browser behavior.

  The commandline switches come from chrome://version/?show-variations-cmd.
  """
results