| 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;
|
|
|