| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 Chromium Ash resources. | 5 """Presubmit script for Chromium Ash resources. |
| 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/git cl, and see | 8 for more details about the presubmit API built into depot_tools, and see |
| 9 http://www.chromium.org/developers/web-development-style-guide for the rules | 9 http://www.chromium.org/developers/web-development-style-guide for the rules |
| 10 we're checking against here. | 10 we're checking against here. |
| 11 """ | 11 """ |
| 12 | 12 |
| 13 | 13 |
| 14 def CheckChangeOnUpload(input_api, output_api): | 14 def CheckChangeOnUpload(input_api, output_api): |
| 15 return _CommonChecks(input_api, output_api) | 15 return _CommonChecks(input_api, output_api) |
| 16 | 16 |
| 17 | 17 |
| 18 def CheckChangeOnCommit(input_api, output_api): | 18 def CheckChangeOnCommit(input_api, output_api): |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 sys.path = [resources] + old_path | 38 sys.path = [resources] + old_path |
| 39 from resource_check import resource_scale_factors | 39 from resource_check import resource_scale_factors |
| 40 | 40 |
| 41 for paths in path_scales: | 41 for paths in path_scales: |
| 42 results.extend(resource_scale_factors.ResourceScaleFactors( | 42 results.extend(resource_scale_factors.ResourceScaleFactors( |
| 43 input_api, output_api, paths).RunChecks()) | 43 input_api, output_api, paths).RunChecks()) |
| 44 finally: | 44 finally: |
| 45 sys.path = old_path | 45 sys.path = old_path |
| 46 | 46 |
| 47 return results | 47 return results |
| OLD | NEW |