diff options
author | treib <treib@chromium.org> | 2015-06-12 00:53:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-12 07:54:29 +0000 |
commit | c2239a84ca03a01bb95d6055d2a6c75b767979fb (patch) | |
tree | 847c8f11aaa15d13d2753affbe59335dae8a9a0d /extensions/common/PRESUBMIT.py | |
parent | 8456c96c8ddcb13363cdbd3a7112d8aa9cf1967e (diff) | |
download | chromium_src-c2239a84ca03a01bb95d6055d2a6c75b767979fb.zip chromium_src-c2239a84ca03a01bb95d6055d2a6c75b767979fb.tar.gz chromium_src-c2239a84ca03a01bb95d6055d2a6c75b767979fb.tar.bz2 |
Remove ExtensionPermission2* histograms.
They've been replaced by ExtensionPermission3*.
BUG=484102
Review URL: https://codereview.chromium.org/1164503005
Cr-Commit-Position: refs/heads/master@{#334133}
Diffstat (limited to 'extensions/common/PRESUBMIT.py')
-rw-r--r-- | extensions/common/PRESUBMIT.py | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/extensions/common/PRESUBMIT.py b/extensions/common/PRESUBMIT.py index cc49fc0..16c1946 100644 --- a/extensions/common/PRESUBMIT.py +++ b/extensions/common/PRESUBMIT.py @@ -10,26 +10,5 @@ for more details on the presubmit API built into depot_tools. import sys -def _CreateAPIPermissionIDChecker(input_api, output_api): - original_sys_path = sys.path - - try: - sys.path.append(input_api.os_path.join( - input_api.PresubmitLocalPath(), '..', '..', 'tools', - 'strict_enum_value_checker')) - from strict_enum_value_checker import StrictEnumValueChecker - finally: - sys.path = original_sys_path - - return StrictEnumValueChecker(input_api, output_api, - start_marker=' enum ID {', end_marker=' // Last entry:', - path='extensions/common/permissions/api_permission.h') - def CheckChangeOnUpload(input_api, output_api): - results = [] - results += _CreateAPIPermissionIDChecker(input_api, output_api).Run() - results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) - return results - -def CheckChangeOnCommit(input_api, output_api): - return _CreateAPIPermissionIDChecker(input_api, output_api).Run() + return input_api.canned_checks.CheckPatchFormatted(input_api, output_api) |