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

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') | no next file with comments »
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..cf20f1b12bca69aa882b571d6d330e7e7f7b326d 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.hasOwnProperty('REQUESTED_ACCESS_CODE')) {
+ container.removeChild(plugin);
+ return null;
+ }
return plugin;
};
@@ -472,5 +476,13 @@ remoting.HostController.prototype.clearPairedClients = function(
this.hostDispatcher_.clearPairedClients(onDone, onError);
};
+/**
+ * Returns true if the NPAPI plugin is being used.
+ * @return {boolean}
+ */
+remoting.HostController.prototype.usingNpapiPlugin = function() {
+ return this.hostDispatcher_.usingNpapiPlugin();
+}
+
/** @type {remoting.HostController} */
remoting.hostController = null;
« no previous file with comments | « no previous file | remoting/webapp/host_dispatcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698