diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 08:38:09 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 08:38:09 +0000 |
commit | aad51d1cb904c54a0455d5b2a3563e51c4c13abc (patch) | |
tree | 4b89866de2a59f64396dc064250f3e97cbf73094 /chrome/renderer/blocked_plugin.cc | |
parent | cde689e1c1384e9e7500f92a274522272c845b5b (diff) | |
download | chromium_src-aad51d1cb904c54a0455d5b2a3563e51c4c13abc.zip chromium_src-aad51d1cb904c54a0455d5b2a3563e51c4c13abc.tar.gz chromium_src-aad51d1cb904c54a0455d5b2a3563e51c4c13abc.tar.bz2 |
Block non-sandboxed plugins.
Run Chrome with --block-nonsandboxed-plugins to enable.
BUG=47730
TEST=See bug description for manual test.
Review URL: http://codereview.chromium.org/3040034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/blocked_plugin.cc')
-rw-r--r-- | chrome/renderer/blocked_plugin.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/renderer/blocked_plugin.cc b/chrome/renderer/blocked_plugin.cc index 906726f7..b5d280d 100644 --- a/chrome/renderer/blocked_plugin.cc +++ b/chrome/renderer/blocked_plugin.cc @@ -10,6 +10,7 @@ #include "base/string_piece.h" #include "chrome/common/jstemplate_builder.h" #include "chrome/common/notification_service.h" +#include "chrome/common/render_messages.h" #include "chrome/renderer/render_view.h" #include "grit/generated_resources.h" #include "grit/renderer_resources.h" @@ -91,15 +92,15 @@ void BlockedPlugin::LoadPlugin() { CHECK(plugin_); WebPluginContainer* container = plugin_->container(); WebPlugin* new_plugin = - render_view_->CreatePluginInternal(frame_, - plugin_params_, - NULL, - std::string()); + render_view_->CreatePluginNoCheck(frame_, + plugin_params_); if (new_plugin && new_plugin->initialize(container)) { container->setPlugin(new_plugin); plugin_->ReplayReceivedData(new_plugin); container->invalidate(); container->reportGeometry(); plugin_->destroy(); + render_view_->Send( + new ViewHostMsg_BlockedPluginLoaded(render_view_->routing_id())); } } |