Index: content/renderer/pepper/pepper_webplugin_impl.cc |
diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc |
index edf96eed25ed2e4996e327dbed48eec807b07038..1c30f0d0af7ddb9b23f866c0f805dce2e7ee9537 100644 |
--- a/content/renderer/pepper/pepper_webplugin_impl.cc |
+++ b/content/renderer/pepper/pepper_webplugin_impl.cc |
@@ -23,7 +23,6 @@ |
#include "third_party/WebKit/public/platform/WebRect.h" |
#include "third_party/WebKit/public/platform/WebSize.h" |
#include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
-#include "third_party/WebKit/public/web/WebBindings.h" |
#include "third_party/WebKit/public/web/WebDocument.h" |
#include "third_party/WebKit/public/web/WebElement.h" |
#include "third_party/WebKit/public/web/WebFrame.h" |
@@ -98,9 +97,6 @@ bool PepperWebPluginImpl::initialize(WebPluginContainer* container) { |
if (!instance_.get()) |
return false; |
- // Enable script objects for this plugin. |
- container->allowScriptObjects(); |
- |
auto weak_this = weak_factory_.GetWeakPtr(); |
bool success = |
instance_->Initialize(init_data_->arg_names, init_data_->arg_values, |
@@ -155,12 +151,6 @@ void PepperWebPluginImpl::destroy() { |
CHECK(!destroyed_); |
destroyed_ = true; |
- // Tell |container_| to clear references to this plugin's script objects. |
- if (container_) |
- container_->clearScriptObjects(); |
- |
- container_ = nullptr; |
- |
if (instance_.get()) { |
ppapi::PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(instance_object_); |
instance_object_ = PP_MakeUndefined(); |