| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Presubmit script for changes affecting chrome/ | 5 """Presubmit script for changes affecting chrome/ |
| 6 | 6 |
| 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into depot_tools. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import re | 11 import re |
| 12 | 12 |
| 13 INCLUDE_CPP_FILES_ONLY = ( | 13 INCLUDE_CPP_FILES_ONLY = ( |
| 14 r'.*\.cc$', r'.*\.h$' | 14 r'.*\.cc$', r'.*\.h$' |
| 15 ) | 15 ) |
| 16 | 16 |
| 17 EXCLUDE = ( | 17 EXCLUDE = ( |
| 18 # Objective C confuses everything. | 18 # Objective C confuses everything. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 def CheckChangeOnUpload(input_api, output_api): | 66 def CheckChangeOnUpload(input_api, output_api): |
| 67 results = [] | 67 results = [] |
| 68 results.extend(_CommonChecks(input_api, output_api)) | 68 results.extend(_CommonChecks(input_api, output_api)) |
| 69 results.extend(_CheckChangeLintsClean(input_api, output_api)) | 69 results.extend(_CheckChangeLintsClean(input_api, output_api)) |
| 70 return results | 70 return results |
| 71 | 71 |
| 72 def CheckChangeOnCommit(input_api, output_api): | 72 def CheckChangeOnCommit(input_api, output_api): |
| 73 results = [] | 73 results = [] |
| 74 results.extend(_CommonChecks(input_api, output_api)) | 74 results.extend(_CommonChecks(input_api, output_api)) |
| 75 return results | 75 return results |
| OLD | NEW |