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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 12086077: Only permit plug-in loads in the browser if the plug-in isn't blocked or the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 180039)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -663,7 +663,7 @@
for (size_t i = 0; i < all_plugins.size(); ++i) {
// Copy because the filter can mutate.
webkit::WebPluginInfo plugin(all_plugins[i]);
- if (!filter || filter->ShouldUsePlugin(child_process_id,
+ if (!filter || filter->IsPluginEnabled(child_process_id,
routing_id,
resource_context_,
GURL(),
@@ -710,8 +710,10 @@
const FilePath& path,
IPC::Message* reply_msg) {
plugin_service_->OpenChannelToPpapiPlugin(
- path, profile_data_directory_, new OpenChannelToPpapiPluginCallback(
- this, resource_context_, reply_msg));
+ render_process_id_,
+ path,
+ profile_data_directory_,
+ new OpenChannelToPpapiPluginCallback(this, resource_context_, reply_msg));
}
void RenderMessageFilter::OnDidCreateOutOfProcessPepperInstance(
@@ -761,7 +763,9 @@
int request_id,
const FilePath& path) {
plugin_service_->OpenChannelToPpapiBroker(
- path, new OpenChannelToPpapiBrokerCallback(this, routing_id, request_id));
+ render_process_id_,
+ path,
+ new OpenChannelToPpapiBrokerCallback(this, routing_id, request_id));
}
void RenderMessageFilter::OnGenerateRoutingID(int* route_id) {

Powered by Google App Engine
This is Rietveld 408576698