15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved. 25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# found in the LICENSE file. 45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)"""Presubmit script for extensions and apps. 65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)for more details about the presubmit API built into depot_tools. 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)""" 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)def CheckChangeOnUpload(input_api, output_api): 125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) results = [] 135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) 145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return results 15