Index: third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
index eb0cc5608fc6e02c902f86038dfdfc1ec58adfac..3ddfea41cd8a0545f83b9b455b4f790f702bc474 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp |
@@ -83,11 +83,10 @@ |
namespace blink { |
-bool ScriptController::canAccessFromCurrentOrigin(LocalFrame *frame) |
+bool ScriptController::canAccessFromCurrentOrigin(v8::Isolate* isolate, Frame* frame) |
{ |
if (!frame) |
return false; |
- v8::Isolate* isolate = toIsolate(frame); |
return !isolate->InContext() || BindingSecurity::shouldAllowAccessToFrame(isolate, callingDOMWindow(isolate), frame, ReportSecurityError); |
} |