diff options
author | initial.commit@chromium.org <initial.commit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 02:14:31 +0000 |
---|---|---|
committer | initial.commit@chromium.org <initial.commit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 02:14:31 +0000 |
commit | 5a7bdf208c28c210b39cff63d1cf91302b02821b (patch) | |
tree | 5ff484561562f78b29d2670168a9e3b40b48dcab /ceee/PRESUBMIT.py | |
parent | 26a54a5e0f4603c8fda2fe51789d331125993c9a (diff) | |
download | chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.zip chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.tar.gz chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.tar.bz2 |
Checking in the initial version of CEEE (Chrome Extensions Execution
Environment), an optional feature of Chrome Frame that acts as an
adapter layer for a subset of the Chrome Extension APIs. This enables
extensions that stick to the supported subset of APIs to work in the
context of Chrome Frame with minimal or sometimes no changes.
See http://www.chromium.org/developers/design-documents/ceee for an
overview of the design of CEEE.
TEST=unit tests (run ceee/smoke_tests.bat as an administrator on Windows)
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee/PRESUBMIT.py')
-rw-r--r-- | ceee/PRESUBMIT.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ceee/PRESUBMIT.py b/ceee/PRESUBMIT.py new file mode 100644 index 0000000..17aedda --- /dev/null +++ b/ceee/PRESUBMIT.py @@ -0,0 +1,25 @@ +# 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) + + +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) |