Index: chrome/browser/ui/content_settings/content_setting_bubble_model.cc |
=================================================================== |
--- chrome/browser/ui/content_settings/content_setting_bubble_model.cc (revision 241294) |
+++ chrome/browser/ui/content_settings/content_setting_bubble_model.cc (working copy) |
@@ -465,14 +465,11 @@ |
void ContentSettingPluginBubbleModel::OnCustomLinkClicked() { |
content::RecordAction(UserMetricsAction("ClickToPlay_LoadAll_Bubble")); |
DCHECK(web_contents()); |
- content::RenderViewHost* host = web_contents()->GetRenderViewHost(); |
#if defined(ENABLE_PLUGINS) |
+ // TODO(bauerb): We should send the identifiers of blocked plug-ins here. |
ChromePluginServiceFilter::GetInstance()->AuthorizeAllPlugins( |
- host->GetProcess()->GetID()); |
+ web_contents(), true, std::string()); |
#endif |
- // TODO(bauerb): We should send the identifiers of blocked plug-ins here. |
- host->Send(new ChromeViewMsg_LoadBlockedPlugins(host->GetRoutingID(), |
- std::string())); |
set_custom_link_enabled(false); |
TabSpecificContentSettings::FromWebContents(web_contents())-> |
set_load_plugins_link_enabled(false); |