diff options
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/PRESUBMIT.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome_frame/PRESUBMIT.py b/chrome_frame/PRESUBMIT.py new file mode 100644 index 0000000..11a7c80 --- /dev/null +++ b/chrome_frame/PRESUBMIT.py @@ -0,0 +1,26 @@ +# Copyright (c) 2010 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import os +import sys + + +def CheckChange(input_api, output_api, committing): + # We need to change the path so that we can import ceee_presubmit + # which lies at the root of the ceee folder. And we do it here so that + # it doesn't pollute all the cases where we get imported yet not called. + sys.path.append(os.path.join(input_api.PresubmitLocalPath(), '../ceee')) + import ceee_presubmit + return ceee_presubmit.CheckChange(input_api, + output_api, + committing, + is_chrome_frame=True) + + +def CheckChangeOnUpload(input_api, output_api): + return CheckChange(input_api, output_api, False) + + +def CheckChangeOnCommit(input_api, output_api): + return CheckChange(input_api, output_api, True) |