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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO 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/presentation/PresentationConnection.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
index a4d35a35cc5170cc89f1904eaf3cfc33b3e2991b..eb045a64e890c8106ca19b9a03c2c4fa34fcfb8a 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -282,13 +282,14 @@ void PresentationConnection::send(DOMArrayBuffer* array_buffer,
HandleMessageQueue();
}
-void PresentationConnection::send(DOMArrayBufferView* array_buffer_view,
- ExceptionState& exception_state) {
- ASSERT(array_buffer_view);
+void PresentationConnection::send(
+ NotShared<DOMArrayBufferView> array_buffer_view,
+ ExceptionState& exception_state) {
+ DCHECK(array_buffer_view);
if (!CanSendMessage(exception_state))
return;
- messages_.push_back(new Message(array_buffer_view->buffer()));
+ messages_.push_back(new Message(array_buffer_view.View()->buffer()));
HandleMessageQueue();
}

Powered by Google App Engine
This is Rietveld 408576698