Add histograms presubmit check for UseCounter.h
The UMA mapping in tools/metrics/histograms/histograms.xml should be updated
whenever a new entry is added to the UseCounter::Feature enum. A script already
exists to automatically update this mapping
(tools/metrics/histograms/update_use_counter_feature_enum.py).
This patch extends the script's library to include a function that checks whether
running the script would produce a change. The patch also implements a presubmit
check that runs this function when UseCounter.h has been modified, and outputs a
warning if a change is detected.
BUG=
Review URL: https://codereview.chromium.org/1745913002
Cr-Commit-Position: refs/heads/master@{#378902}
2 files changed