| Index: Source/core/xml/XMLHttpRequest.cpp
|
| diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
|
| index 2e7849e37cb1486404e8f2e1ff37d65b8530bafe..c8aa46aebb5f65789a366317bf85015efb1c8e0a 100644
|
| --- a/Source/core/xml/XMLHttpRequest.cpp
|
| +++ b/Source/core/xml/XMLHttpRequest.cpp
|
| @@ -54,7 +54,6 @@
|
| #include "platform/network/ParsedContentType.h"
|
| #include "platform/network/ResourceError.h"
|
| #include "platform/network/ResourceRequest.h"
|
| -#include "public/platform/Platform.h"
|
| #include "public/platform/WebURLRequest.h"
|
| #include "wtf/ArrayBuffer.h"
|
| #include "wtf/ArrayBufferView.h"
|
| @@ -67,13 +66,6 @@ namespace WebCore {
|
|
|
| DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, xmlHttpRequestCounter, ("XMLHttpRequest"));
|
|
|
| -// Histogram enum to see when we can deprecate xhr.send(ArrayBuffer).
|
| -enum XMLHttpRequestSendArrayBufferOrView {
|
| - XMLHttpRequestSendArrayBuffer,
|
| - XMLHttpRequestSendArrayBufferView,
|
| - XMLHttpRequestSendArrayBufferOrViewMax,
|
| -};
|
| -
|
| struct XMLHttpRequestStaticData {
|
| WTF_MAKE_NONCOPYABLE(XMLHttpRequestStaticData); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| @@ -768,11 +760,6 @@ void XMLHttpRequest::send(ArrayBuffer* body, ExceptionState& exceptionState)
|
| {
|
| WTF_LOG(Network, "XMLHttpRequest %p send() ArrayBuffer %p", this, body);
|
|
|
| - String consoleMessage("ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.");
|
| - executionContext()->addConsoleMessage(JSMessageSource, WarningMessageLevel, consoleMessage);
|
| -
|
| - blink::Platform::current()->histogramEnumeration("WebCore.XHR.send.ArrayBufferOrView", XMLHttpRequestSendArrayBuffer, XMLHttpRequestSendArrayBufferOrViewMax);
|
| -
|
| sendBytesData(body->data(), body->byteLength(), exceptionState);
|
| }
|
|
|
| @@ -780,8 +767,6 @@ void XMLHttpRequest::send(ArrayBufferView* body, ExceptionState& exceptionState)
|
| {
|
| WTF_LOG(Network, "XMLHttpRequest %p send() ArrayBufferView %p", this, body);
|
|
|
| - blink::Platform::current()->histogramEnumeration("WebCore.XHR.send.ArrayBufferOrView", XMLHttpRequestSendArrayBufferView, XMLHttpRequestSendArrayBufferOrViewMax);
|
| -
|
| sendBytesData(body->baseAddress(), body->byteLength(), exceptionState);
|
| }
|
|
|
|
|