Index: remoting/client/appengine/static_files/chromoting_session.js |
diff --git a/remoting/client/appengine/static_files/chromoting_session.js b/remoting/client/appengine/static_files/chromoting_session.js |
index b6960dfedd0765e8682b53f47a8c29e2a248308e..8b9664244999755cb3f7ed6fc7daed4b8a643e16 100644 |
--- a/remoting/client/appengine/static_files/chromoting_session.js |
+++ b/remoting/client/appengine/static_files/chromoting_session.js |
@@ -54,8 +54,7 @@ function registerConnection() { |
var clientjid = xhr.responseText; |
chromoting.plugin.sendIq = sendIq; |
- // TODO:(jamiewalch): Pass in the correct nonce. |
- chromoting.plugin.connectSandboxed(clientjid, chromoting.hostjid); |
+ chromoting.plugin.connect(chromoting.hostjid, clientjid); |
// TODO(ajwong): This should just be feedIq(); |
window.setTimeout(feedIq, 1000); |
} else { |
@@ -132,9 +131,8 @@ function init() { |
if (chromoting.connectMethod == "sandboxed") { |
registerConnection(); |
} else { |
- // TODO:(jamiewalch): Pass in the correct nonce. |
- plugin.connect(chromoting.username, chromoting.hostjid, |
- chromoting.talkToken, ''); |
+ plugin.connectUnsandboxed(chromoting.hostjid, chromoting.username, |
+ chromoting.talkToken); |
} |
} else { |
addToDebugLog('ERROR: chromoting plugin not loaded'); |