Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: google_apis/google_api_keys.py

Issue 1094133003: Added (incomplete) implementation of HostListApi using GCD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcd-client-fix
Patch Set: for submit Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/remoting_webapp_files.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/google_api_keys.py
diff --git a/google_apis/google_api_keys.py b/google_apis/google_api_keys.py
index 94170ea2864a30fdab09b75f3d9bde5a6fb6be95..ef40ff5f5218fcbe2b7ddf71e5ddd487630ac769 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')
« no previous file with comments | « no previous file | remoting/remoting_webapp_files.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698