Enable plugin blocking for browser plugins.
commit75e8f0d96dbaaecae7aacbed53c5d666ad41c753
authorsammc <sammc@chromium.org>
Wed, 18 Feb 2015 00:17:35 +0000 (17 16:17 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 18 Feb 2015 00:18:37 +0000 (18 00:18 +0000)
treeaf039891942f9063b725cbb14613d7ea8fa0c0b0
parent5a854d30eb6cae7ffa6a725d5257f027c153b7c0
Enable plugin blocking for browser plugins.

This enables plugin blocking through content settings to function for
the out of process PDF extension. This CL changes
ChromeContentRendererClient to apply the same logic to browser plugins
as it does to other plugin types.  To enable this, this CL also moves
the creation of browser plugins from RenderFrameImpl::createPlugin to
RenderFrameImpl::CreatePlugin. Browser plugins using the
"application/browser-plugin" MIME type (webview) are unaffected by this
change.

To avoid a nested blocked plugin, this also whitelists the PDF plugin
to always be allowed within the PDF extension.

BUG=454694

Review URL: https://codereview.chromium.org/920303003

Cr-Commit-Position: refs/heads/master@{#316707}
chrome/browser/content_settings/content_settings_internal_extension_provider.cc
chrome/browser/plugins/plugin_info_message_filter.cc
chrome/renderer/chrome_content_renderer_client.cc
content/renderer/render_frame_impl.cc