Fix V1 app crash when verifying sockets API is available.
commitefb18cbb572a9c798c6ef6c81a0a6cb54935814d
authorsergeyu <sergeyu@chromium.org>
Wed, 17 Sep 2014 00:16:46 +0000 (16 17:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Sep 2014 00:17:07 +0000 (17 00:17 +0000)
treeed45aeead68c855b7ac958b7c3e5cc4f2237cd4f
parentb69fbca034e3c2181e0a12cf02baec4de526bf25
Fix V1 app crash when verifying sockets API is available.

the code that checks that sockets API is available was checking that
chrome.socket.secure is defined without verifying that chrome.socket
is defined. As result the app would not connect.

BUG=414366

Review URL: https://codereview.chromium.org/567293005

Cr-Commit-Position: refs/heads/master@{#295183}
remoting/webapp/session_connector.js