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

Unified Diff: chrome/browser/chrome_content_browser_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: Created 8 years, 1 month 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
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 cd5048a8ea4eb4818d9fdd23d217ff365a616363..0189c1345180845cdb339ab2609ffd4164a37d80 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -625,7 +625,9 @@ void ChromeContentBrowserClient::RenderProcessHostCreated(
void ChromeContentBrowserClient::BrowserChildProcessHostCreated(
content::BrowserChildProcessHost* host) {
+#if defined(ENABLE_PPAPI)
host->GetHost()->AddFilter(new PepperGtalkMessageFilter());
+#endif
}
content::WebUIControllerFactory*
@@ -1756,9 +1758,11 @@ std::string ChromeContentBrowserClient::GetDefaultDownloadName() {
void ChromeContentBrowserClient::DidCreatePpapiPlugin(
content::BrowserPpapiHost* browser_host) {
+#if defined(ENABLE_PPAPI)
browser_host->GetPpapiHost()->AddHostFactoryFilter(
scoped_ptr<ppapi::host::HostFactory>(
new ChromeBrowserPepperHostFactory(browser_host)));
+#endif
}
content::BrowserPpapiHost*

Powered by Google App Engine
This is Rietveld 408576698