| Index: content/browser/frame_host/render_frame_message_filter.cc
|
| diff --git a/content/browser/frame_host/render_frame_message_filter.cc b/content/browser/frame_host/render_frame_message_filter.cc
|
| index a4a91b09e4869065e1ba2ea995e6442ea2a7d189..7a08d33d58304527015a8e870511b809b0a9315f 100644
|
| --- a/content/browser/frame_host/render_frame_message_filter.cc
|
| +++ b/content/browser/frame_host/render_frame_message_filter.cc
|
| @@ -466,9 +466,9 @@ void RenderFrameMessageFilter::SetCookie(int32_t render_frame_id,
|
|
|
| #if defined(ENABLE_PLUGINS)
|
|
|
| -void RenderFrameMessageFilter::OnGetPlugins(
|
| - bool refresh,
|
| - IPC::Message* reply_msg) {
|
| +void RenderFrameMessageFilter::OnGetPlugins(bool refresh,
|
| + GURL main_frame_origin,
|
| + IPC::Message* reply_msg) {
|
| // Don't refresh if the specified threshold has not been passed. Note that
|
| // this check is performed before off-loading to the file thread. The reason
|
| // we do this is that some pages tend to request that the list of plugins be
|
| @@ -486,12 +486,14 @@ void RenderFrameMessageFilter::OnGetPlugins(
|
| }
|
| }
|
|
|
| - PluginServiceImpl::GetInstance()->GetPlugins(base::Bind(
|
| - &RenderFrameMessageFilter::GetPluginsCallback, this, reply_msg));
|
| + PluginServiceImpl::GetInstance()->GetPlugins(
|
| + base::Bind(&RenderFrameMessageFilter::GetPluginsCallback, this, reply_msg,
|
| + main_frame_origin));
|
| }
|
|
|
| void RenderFrameMessageFilter::GetPluginsCallback(
|
| IPC::Message* reply_msg,
|
| + GURL main_frame_origin,
|
| const std::vector<WebPluginInfo>& all_plugins) {
|
| // Filter the plugin list.
|
| PluginServiceFilter* filter = PluginServiceImpl::GetInstance()->GetFilter();
|
| @@ -502,12 +504,10 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
| // In this loop, copy the WebPluginInfo (and do not use a reference) because
|
| // the filter might mutate it.
|
| for (WebPluginInfo plugin : all_plugins) {
|
| - if (!filter || filter->IsPluginAvailable(child_process_id,
|
| - routing_id,
|
| - resource_context_,
|
| - GURL(),
|
| - GURL(),
|
| - &plugin)) {
|
| + if (!filter ||
|
| + filter->IsPluginAvailable(child_process_id, routing_id,
|
| + resource_context_, GURL(), main_frame_origin,
|
| + &plugin)) {
|
| plugins.push_back(plugin);
|
| }
|
| }
|
|
|