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

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

Issue 12315023: Merge 180159 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « content/browser/plugin_service_impl_browsertest.cc ('k') | content/public/browser/plugin_service_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 183671)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -660,7 +660,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(),
@@ -707,8 +707,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(
@@ -758,7 +760,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) {
« no previous file with comments | « content/browser/plugin_service_impl_browsertest.cc ('k') | content/public/browser/plugin_service_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698