summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 18:56:34 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 18:56:34 +0000
commit19921da9681893ac22daede29785bb0cace3d9b0 (patch)
treed5cfb6fe113fde0c0d15a1f6b0c1314fcfbfadd9 /remoting
parent91fa09936d9c9fe0ff6300c980b92b01fd266cc2 (diff)
downloadchromium_src-19921da9681893ac22daede29785bb0cace3d9b0.zip
chromium_src-19921da9681893ac22daede29785bb0cace3d9b0.tar.gz
chromium_src-19921da9681893ac22daede29785bb0cace3d9b0.tar.bz2
Allow wildcard matching for redirect URL.
BUG=None Review URL: https://codereview.chromium.org/11421084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rwxr-xr-xremoting/webapp/build-webapp.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py
index a7b9952..a90b64b 100755
--- a/remoting/webapp/build-webapp.py
+++ b/remoting/webapp/build-webapp.py
@@ -169,16 +169,17 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, plugin,
mimetype)
# Set the correct OAuth2 redirect URL.
- baseUrl = (
- 'https://chromoting-oauth.talkgadget.google.com/'
- 'talkgadget/oauth/chrome-remote-desktop')
+ scheme = 'https://'
+ urlSuffix = '.talkgadget.google.com/talkgadget/oauth/chrome-remote-desktop'
+ url = scheme + 'chromoting-oauth' + urlSuffix
+ urlPattern = scheme + '*' + urlSuffix
if (buildtype == 'Official'):
oauth2RedirectUrlJs = (
- "'" + baseUrl + "/rel/' + chrome.i18n.getMessage('@@extension_id')")
- oauth2RedirectUrlJson = baseUrl + '/rel/*'
+ "'" + url + "/rel/' + chrome.i18n.getMessage('@@extension_id')")
+ oauth2RedirectUrlJson = urlPattern + '/rel/*'
else:
- oauth2RedirectUrlJs = "'" + baseUrl + "/dev'"
- oauth2RedirectUrlJson = baseUrl + '/dev*'
+ oauth2RedirectUrlJs = "'" + url + "/dev'"
+ oauth2RedirectUrlJson = urlPattern + '/dev*'
findAndReplace(os.path.join(destination, 'plugin_settings.js'),
"'OAUTH2_REDIRECT_URL'",
oauth2RedirectUrlJs)