| Index: chrome/renderer/render_view.cc
|
| ===================================================================
|
| --- chrome/renderer/render_view.cc (revision 27435)
|
| +++ chrome/renderer/render_view.cc (working copy)
|
| @@ -2338,7 +2338,13 @@
|
| else
|
| mime_type_to_use = &mime_type;
|
|
|
| - if (RenderProcess::current()->in_process_plugins()) {
|
| + bool in_process_plugin = RenderProcess::current()->in_process_plugins();
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kInternalNaCl)) {
|
| + if (mime_type == "application/x-nacl-srpc") {
|
| + in_process_plugin = true;
|
| + }
|
| + }
|
| + if (in_process_plugin) {
|
| #if defined(OS_WIN) // In-proc plugins aren't supported on Linux or Mac.
|
| return WebPluginDelegateImpl::Create(
|
| path, *mime_type_to_use, gfx::NativeViewFromId(host_window_));
|
|
|