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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout tests 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 46ce422078f9c23630977b5c4fc6712872a13bd6..46b30f32d863d07779725759b7fe35676d56022f 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -280,13 +280,13 @@ void PresentationConnection::send(DOMArrayBuffer* arrayBuffer,
handleMessageQueue();
}
-void PresentationConnection::send(DOMArrayBufferView* arrayBufferView,
+void PresentationConnection::send(NotShared<DOMArrayBufferView> arrayBufferView,
ExceptionState& exceptionState) {
- ASSERT(arrayBufferView);
+ DCHECK(arrayBufferView);
if (!canSendMessage(exceptionState))
return;
- m_messages.push_back(new Message(arrayBufferView->buffer()));
+ m_messages.push_back(new Message(arrayBufferView.view()->buffer()));
handleMessageQueue();
}

Powered by Google App Engine
This is Rietveld 408576698