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

Unified Diff: remoting/webapp/session_connector_impl.js

Issue 595063005: Save the client base JID for authentication in case it differs from the email (for accounts non-Goo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add jsdoc Created 6 years, 3 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/webapp/host_controller.js ('k') | remoting/webapp/signal_strategy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/session_connector_impl.js
diff --git a/remoting/webapp/session_connector_impl.js b/remoting/webapp/session_connector_impl.js
index 5557387e3fd91f1aed97465448d16f84bff50f55..c9ce6fd6a03998b6d6ae70e66a1a8bac63f56ff0 100644
--- a/remoting/webapp/session_connector_impl.js
+++ b/remoting/webapp/session_connector_impl.js
@@ -361,16 +361,8 @@ remoting.SessionConnectorImpl.prototype.connectSignaling_ = function() {
remoting.settings.XMPP_SERVER_ADDRESS, email, token);
}
- // Only use XMPP when TCP API is available and TLS support is enabled. That's
- // not the case for V1 app (socket API is available only to platform apps)
- // and for Chrome releases before 38.
- if (chrome.socket && chrome.socket.secure) {
- this.signalStrategy_ = /** @type {remoting.SignalStrategy} */
- (new remoting.XmppConnection(this.onSignalingState_.bind(this)));
- } else {
- this.signalStrategy_ = /** @type {remoting.SignalStrategy} */
- (new remoting.WcsAdapter(this.onSignalingState_.bind(this)));
- }
+ this.signalStrategy_ =
+ remoting.SignalStrategy.create(this.onSignalingState_.bind(this));
remoting.identity.callWithToken(connectSignalingWithToken, this.onError_);
};
« no previous file with comments | « remoting/webapp/host_controller.js ('k') | remoting/webapp/signal_strategy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698