Index: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
index b1badd5fbc5eb331299a6d651644ccf09e875d7f..1c427411cb77514abc50541c3ab1579893482af2 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -46,6 +46,7 @@ |
#include "bindings/core/v8/V8Node.h" |
#include "core/dom/DOMArrayBuffer.h" |
#include "core/dom/MessagePort.h" |
+#include "core/frame/Deprecation.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/ImageBitmap.h" |
#include "core/frame/LocalDOMWindow.h" |
@@ -197,7 +198,7 @@ void V8Window::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value> |
if (info.Length() > 2) { |
int transferablesArgIndex = 2; |
if (isLegacyTargetOriginDesignation(info[2])) { |
- UseCounter::countIfNotPrivateScript(info.GetIsolate(), window->frame(), UseCounter::WindowPostMessageWithLegacyTargetOriginArgument); |
+ Deprecation::countDeprecationIfNotPrivateScript(info.GetIsolate(), window->document(), UseCounter::WindowPostMessageWithLegacyTargetOriginArgument); |
targetOriginArgIndex = 2; |
transferablesArgIndex = 1; |
} |