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

Unified Diff: remoting/webapp/host_controller.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 | « no previous file | remoting/webapp/host_dispatcher.js » ('j') | remoting/webapp/host_dispatcher.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 21485b12554416ca61e847505cb4114697aa27f6..628b82398c1b79e6c9f07c5152356a4de33800ba 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -15,6 +15,10 @@ remoting.HostController = function() {
/** @type {HTMLElement} @private */
var container = document.getElementById('daemon-plugin-container');
container.appendChild(plugin);
+ if (plugin.getDaemonState === undefined) {
weitao 2014/01/31 18:37:11 Remoting.js uses a different way of detecting the
Sergey Ulanov 2014/01/31 23:34:17 It's essentially the same, except we are using dif
+ container.removeChild(plugin);
+ return null;
+ }
return plugin;
};
« no previous file with comments | « no previous file | remoting/webapp/host_dispatcher.js » ('j') | remoting/webapp/host_dispatcher.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698