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()); |
} |