diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 21:13:12 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 21:13:12 +0000 |
commit | 31534b3f9d96575ade3698d7fec9b7911311fac2 (patch) | |
tree | 4ff70abf3efe2514c2a7c178a9619a0f9b5b41f4 /remoting/client/extension | |
parent | 73561a859fe6cf3cdd62431c26f7ccf601326ebc (diff) | |
download | chromium_src-31534b3f9d96575ade3698d7fec9b7911311fac2.zip chromium_src-31534b3f9d96575ade3698d7fec9b7911311fac2.tar.gz chromium_src-31534b3f9d96575ade3698d7fec9b7911311fac2.tar.bz2 |
Updated chromoting directory URL to use www.googleapis.com, switched to https.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3252006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/extension')
-rw-r--r-- | remoting/client/extension/client.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/remoting/client/extension/client.js b/remoting/client/extension/client.js index cdedfe3f..dd53cf3 100644 --- a/remoting/client/extension/client.js +++ b/remoting/client/extension/client.js @@ -9,7 +9,8 @@ function initParams() { // Prepopulate via cookies first. document.getElementById('xmpp_auth').value = getCookie('xmpp_auth'); - document.getElementById('chromoting_auth').value = getCookie('chromoting_auth'); + document.getElementById('chromoting_auth').value = + getCookie('chromoting_auth'); document.getElementById('username').value = getCookie('username'); for(var i = 0; i < hashes.length; i++) @@ -77,7 +78,8 @@ function doGaiaLogin(username, password, service, done) { }; xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); - xhr.send('accountType=HOSTED_OR_GOOGLE&Email=' + username + '&Passwd=' + password + '&service=' + service + '&source=chromoclient'); + xhr.send('accountType=HOSTED_OR_GOOGLE&Email=' + username + '&Passwd=' + + password + '&service=' + service + '&source=chromoclient'); } function doLogin(username, password, done) { @@ -125,20 +127,22 @@ function doListHosts() { hostlist_div.appendChild(document.createElement('br')); appendHostLinks(parsed_response.data.items); } else { - console.log('bad status on host list query: "' + xhr.status + ' ' + xhr.statusText); + console.log('bad status on host list query: "' + xhr.status + ' ' + + xhr.statusText); hostlist_div.appendChild(document.createTextNode('!! Failed !!. :\'(')); } }; - xhr.open('GET', 'http://www-googleapis-test.sandbox.google.com/chromoting/v1/@me/hosts'); + xhr.open('GET', 'https://www.googleapis.com/chromoting/v1/@me/hosts'); xhr.setRequestHeader('Content-Type', 'text/plain;charset=UTF-8'); xhr.setRequestHeader('Authorization', 'GoogleLogin auth=' + token); xhr.send(null); } function appendHostLinks(hostlist) { -// A host link entry should look like: -// - Host: <a onclick="openChromotingTab(host_jid); return false;">NAME (JID)</a> <br /> + // A host link entry should look like: + // - Host: <a onclick="openChromotingTab(host_jid); return false;"> + // NAME (JID) </a> <br /> var host; var host_link; var hostlist_div = document.getElementById('hostlist_div'); |