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

Unified Diff: remoting/webapp/build-webapp.py

Issue 22901007: Move remoting identity API client id into src-internal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 | « remoting/webapp/appsv2.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/build-webapp.py
diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py
index 384aaf1a9fd0e95755f410308f3967c8724d43c1..42e941cf1bf21db74517b90f25e67bb820f52c8a 100755
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -279,6 +279,7 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, plugin,
# For overriding the client ID/secret via env vars, see google_api_keys.py.
apiClientId = google_api_keys.GetClientID('REMOTING')
apiClientSecret = google_api_keys.GetClientSecret('REMOTING')
+ apiClientIdV2 = google_api_keys.GetClientID('REMOTING_IDENTITY_API')
findAndReplace(os.path.join(destination, 'plugin_settings.js'),
"'API_CLIENT_ID'",
@@ -286,6 +287,9 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, plugin,
findAndReplace(os.path.join(destination, 'plugin_settings.js'),
"'API_CLIENT_SECRET'",
"'" + apiClientSecret + "'")
+ findAndReplace(os.path.join(destination, 'manifest.json'),
+ '"REMOTING_IDENTITY_API_CLIENT_ID"',
+ '"' + apiClientIdV2 + '"')
# Use a consistent extension id for unofficial builds.
if buildtype != 'Official':
« no previous file with comments | « remoting/webapp/appsv2.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698