Index: chrome/renderer/render_view.cc |
=================================================================== |
--- chrome/renderer/render_view.cc (revision 65099) |
+++ chrome/renderer/render_view.cc (working copy) |
@@ -2534,8 +2534,15 @@ |
if (info.path.value() == kDefaultPluginLibraryName || |
plugin_setting == CONTENT_SETTING_ALLOW || |
host_setting == CONTENT_SETTING_ALLOW) { |
- scoped_refptr<pepper::PluginModule> pepper_module( |
- PepperPluginRegistry::GetInstance()->GetModule(info.path)); |
+ scoped_refptr<pepper::PluginModule> pepper_module; |
+ if (PepperPluginRegistry::GetInstance()->RunOutOfProcessForPlugin( |
+ info.path)) { |
+ pepper_module = |
+ pepper_delegate_.CreateOutOfProcessPepperPlugin(info.path); |
+ } else { |
+ pepper_module = |
+ PepperPluginRegistry::GetInstance()->GetModule(info.path); |
+ } |
if (pepper_module) { |
return CreatePepperPlugin(frame, |
params, |