def GetPrefixErrors(input_api, output_api, cwd, rel_path, results):
    'Validates histogram prefixes in specified file.'
    exit_code = input_api.subprocess.call([input_api.python_executable, 'validate_prefix.py', rel_path], cwd=cwd)
    if (exit_code != 0):
        error_msg = ('%s contains histogram(s) with disallowed prefix, please run validate_prefix.py %s to fix.' % (rel_path, rel_path))
        results.append(output_api.PresubmitError(error_msg))
Validates histogram prefixes in specified file.
def GetPrefixErrors(input_api, output_api, cwd, rel_path, results):
    
    exit_code = input_api.subprocess.call([input_api.python_executable, 'validate_prefix.py', rel_path], cwd=cwd)
    if (exit_code != 0):
        error_msg = ('%s contains histogram(s) with disallowed prefix, please run validate_prefix.py %s to fix.' % (rel_path, rel_path))
        results.append(output_api.PresubmitError(error_msg))