def CheckChange(input_api, output_api):
    'Checks that histograms.xml is pretty-printed and well-formatted.'
    results = []
    cwd = input_api.PresubmitLocalPath()
    xml_changed = False
    for file_obj in input_api.AffectedTextFiles():
        is_changed = ValidateSingleFile(input_api, output_api, file_obj, cwd, results)
        xml_changed = (xml_changed or is_changed)
    if xml_changed:
        GetValidateHistogramsError(input_api, output_api, cwd, results)
    return results
Checks that histograms.xml is pretty-printed and well-formatted.
def CheckChange(input_api, output_api):
    
    results = []
    cwd = input_api.PresubmitLocalPath()
    xml_changed = False
    for file_obj in input_api.AffectedTextFiles():
        is_changed = ValidateSingleFile(input_api, output_api, file_obj, cwd, results)
        xml_changed = (xml_changed or is_changed)
    if xml_changed:
        GetValidateHistogramsError(input_api, output_api, cwd, results)
    return results