Chromium Code Reviews| Index: content/browser/PRESUBMIT.py |
| diff --git a/content/browser/PRESUBMIT.py b/content/browser/PRESUBMIT.py |
| index 67e1c2a7c0f2b67b768a4adc05de600542c5fa1e..a4beb857df29c27295ef7259c751078d6a1d7d34 100644 |
| --- a/content/browser/PRESUBMIT.py |
| +++ b/content/browser/PRESUBMIT.py |
| @@ -6,6 +6,12 @@ |
| match the corresponding bad_message.h file. |
| """ |
| +def CheckChangeOnCommit(input_api, output_api): |
| + return _CommonChecks(input_api, output_api) |
| + |
| +def CheckChangeOnUpload(input_api, output_api): |
| + return _CommonChecks(input_api, output_api) |
| + |
| def _RunHistogramChecks(input_api, output_api, histogram_name): |
| try: |
| # Setup sys.path so that we can call histrogram code |
|
ncarter (slow)
2017/04/27 23:35:52
"histrogram" is a typo
Łukasz Anforowicz
2017/04/27 23:59:04
Done (in 5 cases where this typo got copy&pasted :
|
| @@ -24,5 +30,5 @@ def _RunHistogramChecks(input_api, output_api, histogram_name): |
| finally: |
| sys.path = original_sys_path |
| -def CheckChangeOnUpload(input_api, output_api): |
| +def _CommonChecks(input_api, output_api): |
| return _RunHistogramChecks(input_api, output_api, "BadMessageReasonContent") |