summaryrefslogtreecommitdiffstats
path: root/google_apis/build
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-17 17:01:39 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-17 17:01:39 +0000
commit2b11365c597c9886474986565fcce0d3b1e5e8d6 (patch)
tree0f86d768fb56b45365c1a3c1542f24a2f57080ce /google_apis/build
parent72a911aabfce5f815220095f88876cdc9183ce62 (diff)
downloadchromium_src-2b11365c597c9886474986565fcce0d3b1e5e8d6.zip
chromium_src-2b11365c597c9886474986565fcce0d3b1e5e8d6.tar.gz
chromium_src-2b11365c597c9886474986565fcce0d3b1e5e8d6.tar.bz2
Auto-detect whether internal keys should be used.
Allow overriding to explicitly use or not use internal keys, regardless of what is auto-detected. Fix a bug in the implementation, where the default value was not being used for unset tokens. BUG=145584 Review URL: https://codereview.chromium.org/10933126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/build')
-rwxr-xr-xgoogle_apis/build/check_internal.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/google_apis/build/check_internal.py b/google_apis/build/check_internal.py
new file mode 100755
index 0000000..da0ddae
--- /dev/null
+++ b/google_apis/build/check_internal.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+# Copyright (c) 2012 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.
+
+"""google_api's auto-internal gyp integration.
+
+Takes one argument, a path. Prints 1 if the path exists, 0 if not.
+"""
+
+
+import os
+import sys
+
+
+if __name__ == '__main__':
+ if os.path.exists(sys.argv[1]):
+ print 1
+ else:
+ print 0