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

Unified Diff: remoting/webapp/remoting.js

Issue 132793007: Download the host components when user tries to enable Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_setup_dialog.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index b0519c21a7b7d9e31f52b8356c6b1c835698b055..2a3ea49077aba8adbfece087ef02923d38e50618 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -150,6 +150,26 @@ 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.
+/** @type {boolean} */
+remoting.supportedLinuxDistibutionDetected_ = false;
+
+/**
+ * @return {boolean}
+ */
+remoting.isMe2MeSupported = function isMe2MeSupported() {
+ /** @type {string} */
+ 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.supportedLinuxDistibutionDetected_ &&
+ !remoting.runningOnChromeOS());
+}
+
/**
* Display the user's email address and allow access to the rest of the app,
* including parsing URL parameters.
« no previous file with comments | « remoting/webapp/host_setup_dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698