Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3347)

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 11414180: Add a gyp flag to allow removing dependency on ppapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698