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

Unified Diff: content/browser/site_instance_impl.cc

Issue 12518033: Browser Plugin: Only install BrowserPluginMessageFilter if render process supports BrowserPlugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 9 months 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: content/browser/site_instance_impl.cc
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index 79cd2c2311617132ee5ec0f663dd273c258b5e9d..3a93f25c9fa5de8db5c3b77772fed47daedd22bd 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -118,8 +118,11 @@ RenderProcessHost* SiteInstanceImpl::GetProcess() {
StoragePartitionImpl* partition =
static_cast<StoragePartitionImpl*>(
BrowserContext::GetStoragePartition(browser_context, this));
+ bool supports_browser_plugin = GetContentClient()->browser()->
+ SupportsBrowserPlugin(browser_context, site_);
process_ =
new RenderProcessHostImpl(browser_context, partition,
+ supports_browser_plugin,
site_.SchemeIs(chrome::kGuestScheme));
}
}

Powered by Google App Engine
This is Rietveld 408576698