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

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
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.
« remoting/webapp/host_setup_dialog.js ('K') | « remoting/webapp/host_setup_dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698