diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-04 00:05:00 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-04 00:05:00 +0000 |
commit | e30ba408a90d892e49b87f71366ed27c562445cc (patch) | |
tree | b40aaecbcce92032c39b75530172350d1035b3c5 | |
parent | f361e2f3a62299a92211964e2a7c1f9fa1a2d6cd (diff) | |
download | chromium_src-e30ba408a90d892e49b87f71366ed27c562445cc.zip chromium_src-e30ba408a90d892e49b87f71366ed27c562445cc.tar.gz chromium_src-e30ba408a90d892e49b87f71366ed27c562445cc.tar.bz2 |
Add missing 'return' to code that disables Native Messaging support.
BUG=234374
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/14783003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198255 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | remoting/webapp/host_native_messaging.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/remoting/webapp/host_native_messaging.js b/remoting/webapp/host_native_messaging.js index 0d088d0..64c6cd0 100644 --- a/remoting/webapp/host_native_messaging.js +++ b/remoting/webapp/host_native_messaging.js @@ -49,11 +49,10 @@ remoting.HostNativeMessaging = function() { * @return {void} Nothing. */ remoting.HostNativeMessaging.prototype.initialize = function(onDone) { - // TODO(lambroslambrou): Remove this once the Chrome Remote Desktop native - // messaging API is stable. - onDone(false); - - if (!chrome.runtime.connectNative) { + // TODO(lambroslambrou): Remove 'alwaysTrue ||' once the Chrome Remote Desktop + // native messaging API is stable. + var alwaysTrue = true; + if (alwaysTrue || !chrome.runtime.connectNative) { console.log('Native Messaging API not available'); onDone(false); return; |