Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index 7f249b831ea557366bb7df21b33a07cd604c4b7a..c7b30ab2a1f22e04ada85a34bcf842ce1a855e9d 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -301,7 +301,10 @@ void ChromeContentRendererClient::RenderViewCreated( |
render_view, content_settings, chrome_observer_.get(), |
extension_dispatcher_.get(), translate); |
+#if defined(ENABLE_PLUGINS) |
new PepperHelper(render_view); |
+#endif |
+ |
// FaviconHelper will delete itself when render_view is destroyed. |
new FaviconHelper(render_view); |
// Used only for testing/automation. |
@@ -1026,7 +1029,9 @@ bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { |
void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( |
webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
+#if defined(ENABLE_PLUGINS) |
factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); |
+#endif |
} |
} // namespace chrome |