diff options
author | jrw <jrw@chromium.org> | 2015-04-27 13:08:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-27 20:09:27 +0000 |
commit | 0ffae3270ed1461a9a90febbe4f555c21181c188 (patch) | |
tree | e8024320406265a88d72ec169cefe3a6b0674ab9 /google_apis | |
parent | c4363d1ca65494cb7b271625e1ff6541a9f593c9 (diff) | |
download | chromium_src-0ffae3270ed1461a9a90febbe4f555c21181c188.zip chromium_src-0ffae3270ed1461a9a90febbe4f555c21181c188.tar.gz chromium_src-0ffae3270ed1461a9a90febbe4f555c21181c188.tar.bz2 |
Added (incomplete) implementation of HostListApi using GCD.
The new implementation is activated when USE_GCD=1 at build time.
BUG=471928
Review URL: https://codereview.chromium.org/1094133003
Cr-Commit-Position: refs/heads/master@{#327111}
Diffstat (limited to 'google_apis')
-rwxr-xr-x | google_apis/google_api_keys.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/google_apis/google_api_keys.py b/google_apis/google_api_keys.py index 94170ea..ef40ff5 100755 --- a/google_apis/google_api_keys.py +++ b/google_apis/google_api_keys.py @@ -70,6 +70,11 @@ def GetAPIKey(): return _GetToken('GOOGLE_API_KEY') +def GetAPIKeyRemoting(): + """Returns the simple API key.""" + return _GetToken('GOOGLE_API_KEY_REMOTING') + + def GetClientID(client_name): """Returns the OAuth 2.0 client ID for the client of the given name.""" return _GetToken('GOOGLE_CLIENT_ID_%s' % client_name) @@ -82,6 +87,7 @@ def GetClientSecret(client_name): if __name__ == "__main__": print 'GOOGLE_API_KEY=%s' % GetAPIKey() + print 'GOOGLE_API_KEY_REMOTING=%s' % GetAPIKeyRemoting() print 'GOOGLE_CLIENT_ID_MAIN=%s' % GetClientID('MAIN') print 'GOOGLE_CLIENT_SECRET_MAIN=%s' % GetClientSecret('MAIN') print 'GOOGLE_CLIENT_ID_CLOUD_PRINT=%s' % GetClientID('CLOUD_PRINT') |