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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks 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..8f563090d57ddb30561b264a7707d9be6e87fa59 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -280,13 +280,14 @@ void PresentationConnection::send(DOMArrayBuffer* arrayBuffer,
handleMessageQueue();
}
-void PresentationConnection::send(DOMArrayBufferView* arrayBufferView,
- ExceptionState& exceptionState) {
- ASSERT(arrayBufferView);
+void PresentationConnection::send(
+ const NotShared<DOMArrayBufferView>& arrayBufferView,
+ ExceptionState& exceptionState) {
+ DCHECK(arrayBufferView.view());
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