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

Unified Diff: remoting/webapp/me2mom/remoting_session.js

Issue 7042022: Add separate nonce version of connect call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: really remove webapp files Created 9 years, 7 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
Index: remoting/webapp/me2mom/remoting_session.js
diff --git a/remoting/webapp/me2mom/remoting_session.js b/remoting/webapp/me2mom/remoting_session.js
index 77b82236f93fa2a706a6530c4032669e163db9e8..a94e12fdcb2eb9bcdb5a23abcae5651d71de0981 100644
--- a/remoting/webapp/me2mom/remoting_session.js
+++ b/remoting/webapp/me2mom/remoting_session.js
@@ -54,8 +54,8 @@ function registerConnection() {
var clientjid = xhr.responseText;
remoting.plugin.sendIq = sendIq;
- remoting.plugin.connectSandboxed(clientjid, remoting.hostjid,
- remoting.accessCode);
+ remoting.plugin.connectSandboxedNonce(clientjid, remoting.hostjid,
+ remoting.accessCode);
// TODO(ajwong): This should just be feedIq();
window.setTimeout(feedIq, 1000);
} else {
@@ -122,8 +122,8 @@ function init() {
if (remoting.connectMethod == 'sandboxed') {
registerConnection();
} else {
- plugin.connect(remoting.username, remoting.hostjid,
- remoting.xmppAuthToken, remoting.accessCode);
+ plugin.connectNonce(remoting.username, remoting.hostjid,
+ remoting.xmppAuthToken, remoting.accessCode);
}
} else {
addToDebugLog('ERROR: remoting plugin not loaded');

Powered by Google App Engine
This is Rietveld 408576698