| Index: components/plugins/renderer/webview_plugin.cc
|
| diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
|
| index fd001151967372f39a62f27683e3238b40eb28cf..bb9eecff628892a020511304c3f55d31cca64c38 100644
|
| --- a/components/plugins/renderer/webview_plugin.cc
|
| +++ b/components/plugins/renderer/webview_plugin.cc
|
| @@ -328,14 +328,14 @@ void WebViewPlugin::WebViewHelper::ScheduleAnimation() {
|
| }
|
| }
|
|
|
| -void WebViewPlugin::WebViewHelper::DidClearWindowObject(WebLocalFrame* frame) {
|
| - DCHECK_EQ(frame, web_view_->MainFrame());
|
| +void WebViewPlugin::WebViewHelper::DidClearWindowObject() {
|
| if (!plugin_->delegate_)
|
| return;
|
|
|
| v8::Isolate* isolate = blink::MainThreadIsolate();
|
| v8::HandleScope handle_scope(isolate);
|
| - v8::Local<v8::Context> context = frame->MainWorldScriptContext();
|
| + v8::Local<v8::Context> context =
|
| + web_view_->MainFrame()->MainWorldScriptContext();
|
| DCHECK(!context.IsEmpty());
|
|
|
| v8::Context::Scope context_scope(context);
|
|
|