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

Unified Diff: remoting/webapp/session_connector.js

Issue 567293005: Fix V1 app crash when verifying sockets API is available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/session_connector.js
diff --git a/remoting/webapp/session_connector.js b/remoting/webapp/session_connector.js
index 6d6e92b05d3545cc8450c624d2c43037467b1fa0..04fe425e21634d38e4dd7579a1ed8f8d9f8c30f5 100644
--- a/remoting/webapp/session_connector.js
+++ b/remoting/webapp/session_connector.js
@@ -371,7 +371,7 @@ remoting.SessionConnector.prototype.connectSignaling_ = function() {
// 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.secure) {
+ if (chrome.socket && chrome.socket.secure) {
this.signalStrategy_ = /** @type {remoting.SignalStrategy} */
(new remoting.XmppConnection(this.onSignalingState_.bind(this)));
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698