Chromium Code Reviews| Index: chrome/renderer/render_view.cc |
| =================================================================== |
| --- chrome/renderer/render_view.cc (revision 72559) |
| +++ chrome/renderer/render_view.cc (working copy) |
| @@ -2725,6 +2725,26 @@ |
| ContentSetting host_setting = |
| current_content_settings_.settings[CONTENT_SETTINGS_TYPE_PLUGINS]; |
| + |
| + if (group->RequiresAuthorization() && |
| + !cmd->HasSwitch(switches::kAlwaysAuthorizePlugins) && |
| + (plugin_setting == CONTENT_SETTING_ALLOW || |
| + plugin_setting == CONTENT_SETTING_ASK) && |
| + host_setting == CONTENT_SETTING_DEFAULT) { |
| + // TODO(cevans) - may need some form of "always allow this web site", |
| + // either via an explicit button or integration with the blocked-plugin |
| + // bubble. |
|
Bernhard Bauer
2011/01/26 12:49:25
Nit: Comment unnecessary?
|
| + Send(new ViewHostMsg_BlockedOutdatedPlugin(routing_id_, |
| + group->GetGroupName(), |
| + GURL())); |
| + return CreatePluginPlaceholder(frame, |
| + params, |
| + *group, |
| + IDR_BLOCKED_PLUGIN_HTML, |
| + IDS_PLUGIN_NOT_AUTHORIZED, |
| + false); |
| + } |
| + |
| if (info.path.value() == webkit::npapi::kDefaultPluginLibraryName || |
| plugin_setting == CONTENT_SETTING_ALLOW || |
| host_setting == CONTENT_SETTING_ALLOW) { |