| 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 f50154fc5f688d6a14c42bbf4550985ce63dbff3..f13cfeba3afe62191e31dcaa72a31a41c59fcd2b 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| @@ -47,6 +47,7 @@
|
| #include "core/dom/DOMArrayBuffer.h"
|
| #include "core/dom/ExceptionCode.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"
|
| @@ -198,7 +199,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;
|
| }
|
|
|