diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 23:00:37 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 23:00:37 +0000 |
commit | 40cdf8b32f52f06ac7b3f25469a6c9476bdce8bf (patch) | |
tree | 7b27d6dcf1fb850a66fd947661fec45b277df2ab /PRESUBMIT.py | |
parent | b95ad2e8729e8c31d2dc919f74ff5843057168ba (diff) | |
download | chromium_src-40cdf8b32f52f06ac7b3f25469a6c9476bdce8bf.zip chromium_src-40cdf8b32f52f06ac7b3f25469a6c9476bdce8bf.tar.gz chromium_src-40cdf8b32f52f06ac7b3f25469a6c9476bdce8bf.tar.bz2 |
Enforce correct mime-type on some files formats (especially images).
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/147221
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-x | PRESUBMIT.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index cbce0b1..8d4083d 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -37,6 +37,8 @@ def CheckChangeOnUpload(input_api, output_api): input_api, output_api)) results.extend(input_api.canned_checks.CheckChangeSvnEolStyle( input_api, output_api, sources)) + results.extend(input_api.canned_checks.CheckSvnForCommonMimeTypes( + input_api, output_api)) return results @@ -56,6 +58,8 @@ def CheckChangeOnCommit(input_api, output_api): input_api, output_api)) results.extend(input_api.canned_checks.CheckChangeSvnEolStyle( input_api, output_api, sources)) + results.extend(input_api.canned_checks.CheckSvnForCommonMimeTypes( + input_api, output_api)) # Make sure the tree is 'open'. # TODO(maruel): Run it in a separate thread to parallelize checks? results.extend(CheckTreeIsOpen(input_api, output_api, |