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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp

Issue 1964183004: Revert of Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/push_messaging/PushMessageData.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp b/third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp
index b6c96284163fc2185564c492198e97820d94b8c5..a7b133d9d2d7bbe82f776b135dd5b8fcb9ecc598 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp
@@ -29,7 +29,7 @@
PushMessageData* PushMessageData::create(const ArrayBufferOrArrayBufferViewOrUSVString& messageData)
{
if (messageData.isArrayBuffer() || messageData.isArrayBufferView()) {
- DOMArrayBuffer* buffer = messageData.isArrayBufferView()
+ RefPtr<DOMArrayBuffer> buffer = messageData.isArrayBufferView()
? messageData.getAsArrayBufferView()->buffer()
: messageData.getAsArrayBuffer();
@@ -54,7 +54,7 @@
{
}
-DOMArrayBuffer* PushMessageData::arrayBuffer() const
+PassRefPtr<DOMArrayBuffer> PushMessageData::arrayBuffer() const
{
return DOMArrayBuffer::create(m_data.data(), m_data.size());
}

Powered by Google App Engine
This is Rietveld 408576698