| Index: third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
|
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
|
| index afdf569ae6f3e22c4708c000811ad79591c1f34a..684634ff3e4071f47e45ec3f61901a6a5ccd8d35 100644
|
| --- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
|
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
|
| @@ -227,10 +227,11 @@ void RTCDataChannel::send(DOMArrayBuffer* data,
|
| }
|
| }
|
|
|
| -void RTCDataChannel::send(DOMArrayBufferView* data,
|
| +void RTCDataChannel::send(const NotShared<DOMArrayBufferView>& data,
|
| ExceptionState& exceptionState) {
|
| - if (!m_handler->sendRawData(static_cast<const char*>(data->baseAddress()),
|
| - data->byteLength())) {
|
| + if (!m_handler->sendRawData(
|
| + static_cast<const char*>(data.view()->baseAddress()),
|
| + data.view()->byteLength())) {
|
| // FIXME: This should not throw an exception but instead forcefully close
|
| // the data channel.
|
| throwCouldNotSendDataException(exceptionState);
|
|
|