tools/metrics/histograms/PRESUBMIT.py
def GetObsoleteXmlErrors(input_api, output_api, cwd, results):
  """Validates all histograms in the file are obsolete."""
  exit_code = input_api.subprocess.call(
      [input_api.python_executable, 'validate_obsolete_histograms.py'], cwd=cwd)

  if exit_code != 0:
    error_msg = (
        'metadata/obsolete_histograms.xml contains non-obsolete '
        'histograms, please run validate_obsolete_histograms.py to fix.')
    results.append(output_api.PresubmitError(error_msg))
Validates all histograms in the file are obsolete.
Validates all histograms in the file are obsolete.
Validates all histograms in the file are obsolete .
def GetObsoleteXmlErrors(input_api, output_api, cwd, results):
  exit_code = input_api.subprocess.call(
      [input_api.python_executable, 'validate_obsolete_histograms.py'], cwd=cwd)
  if exit_code != 0:
    error_msg = (
        'metadata/obsolete_histograms.xml contains non-obsolete '
        'histograms, please run validate_obsolete_histograms.py to fix.')
    results.append(output_api.PresubmitError(error_msg))
def GetObsoleteXmlErrors ( input_api , output_api , cwd , results ) : exit_code = input_api . subprocess . call ( [ input_api . python_executable , 'validate_obsolete_histograms.py' ] , cwd = cwd ) if exit_code != 0 : error_msg = ( 'metadata/obsolete_histograms.xml contains non-obsolete ' 'histograms, please run validate_obsolete_histograms.py to fix.' ) results . append ( output_api . PresubmitError ( error_msg ) )
Validates all histograms in the file are obsolete.
Validates all histograms in the file are obsolete .
"""Validates all histograms in the file are obsolete."""
input_api
output_api
cwd
results