Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index ed16096fef01fb91defa20885e190bf82c405dbe..eadba8b803afb1460bc94bfd887cbb9b2ecd0602 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1751,9 +1751,11 @@ std::string ChromeContentBrowserClient::GetDefaultDownloadName() { |
void ChromeContentBrowserClient::DidCreatePpapiPlugin( |
content::BrowserPpapiHost* browser_host) { |
+#if defined(ENABLE_PLUGINS) |
browser_host->GetPpapiHost()->AddHostFactoryFilter( |
scoped_ptr<ppapi::host::HostFactory>( |
new ChromeBrowserPepperHostFactory(browser_host))); |
+#endif |
} |
content::BrowserPpapiHost* |