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

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

Issue 9343001: The Chromium and Google Chrome builds of the chromoting webapp use different (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move buildtype-dependent parameters to plugin_settings.js." Created 8 years, 10 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/webapp/oauth2.js » ('j') | 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 cd00d73a2b98987152b194b759203a3487e70415..84c962915d9a66fe0ccd01e46a9216a3fd71618e 100755
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -191,6 +191,22 @@ def buildWebApp(buildtype, mimetype, destination, zip_path, plugin, files,
"OAUTH2_REDIRECT_URL",
oauth2RedirectUrlJson)
+ # Set the correct API keys.
+ if (buildtype == 'Official'):
+ apiClientId = ('440925447803-avn2sj1kc099s0r7v62je5s339mu0am1.' +
+ 'apps.googleusercontent.com')
+ apiClientSecret = 'Bgur6DFiOMM1h8x-AQpuTQlK'
+ else:
+ apiClientId = ('440925447803-2pi3v45bff6tp1rde2f7q6lgbor3o5uj.' +
+ 'apps.googleusercontent.com')
+ apiClientSecret = 'W2ieEsG-R1gIA4MMurGrgMc_'
+ findAndReplace(os.path.join(destination, 'plugin_settings.js'),
+ "'API_CLIENT_ID'",
+ "'" + apiClientId + "'")
+ findAndReplace(os.path.join(destination, 'plugin_settings.js'),
+ "'API_CLIENT_SECRET'",
+ "'" + apiClientSecret + "'")
+
# Make the zipfile.
createZip(zip_path, destination)
« no previous file with comments | « no previous file | remoting/webapp/oauth2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698