Chromium Code Reviews| Index: remoting/webapp/remoting.js |
| diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js |
| index b0519c21a7b7d9e31f52b8356c6b1c835698b055..c94c6cb9f351f6b2660004f62700b24627e0fffd 100644 |
| --- a/remoting/webapp/remoting.js |
| +++ b/remoting/webapp/remoting.js |
| @@ -150,6 +150,21 @@ function isIT2MeSupported_() { |
| return !remoting.runningOnChromeOS(); |
| } |
| +// TODO(sergeyu): We want to show Me2Me host controls only on some Linux |
| +// distributions that we know work properly with the chromoting host. Implement |
| +// dome detection mechanism and apply it here. |
| +remoting.supportLinuxDistibutionDetected_ = false; |
|
Jamie
2014/01/31 18:39:15
s/support/supported/
Sergey Ulanov
2014/01/31 23:34:17
Done.
|
| + |
| +remoting.isMe2MeSupported = function isMe2MeSupported() { |
| + var platform = navigator.platform; |
| + |
| + // Currently Me2Me is supported on Windows, OSX and some versions of Linux. |
| + return platform == "Win32" || platform == "MacIntel" || |
| + ((platform == "Linux x86_64" || platform == "Linux i386") && |
| + remoting.supportLinuxDistibutionDetected_ && |
| + !remoting.runningOnChromeOS()); |
|
Jamie
2014/01/31 18:39:15
Does ChromeOS report itself as Linux? If so, then
Sergey Ulanov
2014/01/31 23:34:17
Yes, ChromeOS reports itself as Linux (blink uses
|
| +} |
| + |
| /** |
| * Display the user's email address and allow access to the rest of the app, |
| * including parsing URL parameters. |