Index: remoting/webapp/client_session.js |
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js |
index c55b277a3820cbd0b50380a282247a1d9b8c2f17..7b2e62239cdedb6555fc686909a300fd8a0491d3 100644 |
--- a/remoting/webapp/client_session.js |
+++ b/remoting/webapp/client_session.js |
@@ -350,8 +350,17 @@ remoting.ClientSession.prototype.createClientPlugin_ = |
document.createElement('embed'); |
plugin.id = id; |
- plugin.src = 'about://none'; |
- plugin.type = 'application/vnd.chromium.remoting-viewer'; |
+ if (remoting.settings.CLIENT_PLUGIN_TYPE == 'pnacl') { |
+ plugin.src = 'remoting_client_pnacl.nmf'; |
+ plugin.type = 'application/x-pnacl'; |
+ } else if (remoting.settings.CLIENT_PLUGIN_TYPE == 'nacl') { |
+ plugin.src = 'remoting_client_nacl.nmf'; |
+ plugin.type = 'application/x-nacl'; |
+ } else { |
+ plugin.src = 'about://none'; |
+ plugin.type = 'application/vnd.chromium.remoting-viewer'; |
+ } |
+ |
plugin.width = 0; |
plugin.height = 0; |
plugin.tabIndex = 0; // Required, otherwise focus() doesn't work. |