Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp

Issue 2812833003: Revert of [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d30cc48bdcf20a60490af8bba5dc3ffa99478af7..0041bd2430a7ebef9ab6a408f953184a52ea8377 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
@@ -227,11 +227,10 @@
}
}
-void RTCDataChannel::send(NotShared<DOMArrayBufferView> data,
+void RTCDataChannel::send(DOMArrayBufferView* data,
ExceptionState& exception_state) {
- if (!handler_->SendRawData(
- static_cast<const char*>(data.View()->BaseAddress()),
- data.View()->byteLength())) {
+ if (!handler_->SendRawData(static_cast<const char*>(data->BaseAddress()),
+ data->byteLength())) {
// FIXME: This should not throw an exception but instead forcefully close
// the data channel.
ThrowCouldNotSendDataException(exception_state);

Powered by Google App Engine
This is Rietveld 408576698