Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index fe8c24a415e248ea4b2dda477b2f06e9e8ab2553..46ca5a589f3123c3c8d2f3231ac12e71b4a4cedc 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -494,7 +494,11 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
scoped_refptr<RenderMessageFilter> render_message_filter( |
new RenderMessageFilter( |
GetID(), |
+#if defined(ENABLE_PLUGINS) |
PluginServiceImpl::GetInstance(), |
+#else |
+ NULL, |
+#endif |
GetBrowserContext(), |
GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), |
widget_helper_, |
@@ -778,7 +782,9 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
switches::kEnableStrictSiteIsolation, |
switches::kDisableFullScreen, |
switches::kEnableNewDialogStyle, |
+#if defined(ENABLE_PLUGINS) |
switches::kEnablePepperTesting, |
+#endif |
switches::kEnablePreparsedJsCaching, |
switches::kEnablePruneGpuCommandBuffers, |
switches::kEnablePinch, |