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

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

Issue 10116040: Remoting daemon process to support unofficial client ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 8 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 | « remoting/host/signaling_connector.cc ('k') | remoting/webapp/host_controller.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 6f04f897ae57c656cabc970ece94f8d0b7ec680b..b36f64f58c9fc94928c03f62d122840673cd180f 100755
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -187,16 +187,21 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, plugin,
apiClientId = ('440925447803-avn2sj1kc099s0r7v62je5s339mu0am1.' +
'apps.googleusercontent.com')
apiClientSecret = 'Bgur6DFiOMM1h8x-AQpuTQlK'
+ oauth2UseOfficialClientId = 'true';
else:
apiClientId = ('440925447803-2pi3v45bff6tp1rde2f7q6lgbor3o5uj.' +
'apps.googleusercontent.com')
apiClientSecret = 'W2ieEsG-R1gIA4MMurGrgMc_'
+ oauth2UseOfficialClientId = 'false';
findAndReplace(os.path.join(destination, 'plugin_settings.js'),
"'API_CLIENT_ID'",
"'" + apiClientId + "'")
findAndReplace(os.path.join(destination, 'plugin_settings.js'),
"'API_CLIENT_SECRET'",
"'" + apiClientSecret + "'")
+ findAndReplace(os.path.join(destination, 'plugin_settings.js'),
+ "OAUTH2_USE_OFFICIAL_CLIENT_ID",
+ oauth2UseOfficialClientId)
# Make the zipfile.
createZip(zip_path, destination)
« no previous file with comments | « remoting/host/signaling_connector.cc ('k') | remoting/webapp/host_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698