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

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

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 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/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 a7b133d9d2d7bbe82f776b135dd5b8fcb9ecc598..b6c96284163fc2185564c492198e97820d94b8c5 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 String& messageString)
PushMessageData* PushMessageData::create(const ArrayBufferOrArrayBufferViewOrUSVString& messageData)
{
if (messageData.isArrayBuffer() || messageData.isArrayBufferView()) {
- RefPtr<DOMArrayBuffer> buffer = messageData.isArrayBufferView()
+ DOMArrayBuffer* buffer = messageData.isArrayBufferView()
? messageData.getAsArrayBufferView()->buffer()
: messageData.getAsArrayBuffer();
@@ -54,7 +54,7 @@ PushMessageData::~PushMessageData()
{
}
-PassRefPtr<DOMArrayBuffer> PushMessageData::arrayBuffer() const
+DOMArrayBuffer* PushMessageData::arrayBuffer() const
{
return DOMArrayBuffer::create(m_data.data(), m_data.size());
}

Powered by Google App Engine
This is Rietveld 408576698