| Index: components/plugins/renderer/loadable_plugin_placeholder.cc
|
| diff --git a/components/plugins/renderer/loadable_plugin_placeholder.cc b/components/plugins/renderer/loadable_plugin_placeholder.cc
|
| index 90c3f9ba7183580e8f0c07d6736c85feda4421e8..37e2bb6e6b60967e8f2768fe3e6c9eb301a1759e 100644
|
| --- a/components/plugins/renderer/loadable_plugin_placeholder.cc
|
| +++ b/components/plugins/renderer/loadable_plugin_placeholder.cc
|
| @@ -16,13 +16,11 @@
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/renderer/render_frame.h"
|
| #include "content/public/renderer/render_thread.h"
|
| -#include "gin/handle.h"
|
| #include "gin/object_template_builder.h"
|
| #include "third_party/WebKit/public/web/WebDOMMessageEvent.h"
|
| #include "third_party/WebKit/public/web/WebDocument.h"
|
| #include "third_party/WebKit/public/web/WebElement.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| -#include "third_party/WebKit/public/web/WebKit.h"
|
| #include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| #include "third_party/WebKit/public/web/WebPluginContainer.h"
|
| #include "third_party/WebKit/public/web/WebScriptSource.h"
|
| @@ -111,18 +109,6 @@ void LoadablePluginPlaceholder::MarkPluginEssential(
|
| }
|
| #endif
|
|
|
| -void LoadablePluginPlaceholder::BindWebFrame(blink::WebFrame* frame) {
|
| - v8::Isolate* isolate = blink::mainThreadIsolate();
|
| - v8::HandleScope handle_scope(isolate);
|
| - v8::Local<v8::Context> context = frame->mainWorldScriptContext();
|
| - DCHECK(!context.IsEmpty());
|
| -
|
| - v8::Context::Scope context_scope(context);
|
| - v8::Local<v8::Object> global = context->Global();
|
| - global->Set(gin::StringToV8(isolate, "plugin"),
|
| - gin::CreateHandle(isolate, this).ToV8());
|
| -}
|
| -
|
| gin::ObjectTemplateBuilder LoadablePluginPlaceholder::GetObjectTemplateBuilder(
|
| v8::Isolate* isolate) {
|
| return gin::Wrappable<PluginPlaceholder>::GetObjectTemplateBuilder(isolate)
|
|
|