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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 91c2a58621f4dcff8e7b80c79509b61a9dedb917..08bda90dda9481da977b3941a5d1a5c3ccd065ee 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushMessageData.cpp
@@ -13,7 +13,7 @@
#include "platform/blob/BlobData.h"
#include "wtf/Assertions.h"
#include "wtf/text/TextEncoding.h"
-#include <memory>
+
#include <v8.h>
namespace blink {
@@ -63,7 +63,7 @@ DOMArrayBuffer* PushMessageData::arrayBuffer() const
Blob* PushMessageData::blob() const
{
- std::unique_ptr<BlobData> blobData = BlobData::create();
+ OwnPtr<BlobData> blobData = BlobData::create();
blobData->appendBytes(m_data.data(), m_data.size());
// Note that the content type of the Blob object is deliberately not being

Powered by Google App Engine
This is Rietveld 408576698