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

Unified Diff: third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.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/websockets/InspectorWebSocketEvents.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp b/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp
index c48f7c56b60967680a46a7373b186da25c2bea81..e95695f171af3abff23a589571745124f8fa59e0 100644
--- a/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp
+++ b/third_party/WebKit/Source/modules/websockets/InspectorWebSocketEvents.cpp
@@ -6,13 +6,12 @@
#include "core/dom/Document.h"
#include "platform/weborigin/KURL.h"
-#include <memory>
namespace blink {
-std::unique_ptr<TracedValue> InspectorWebSocketCreateEvent::data(Document* document, unsigned long identifier, const KURL& url, const String& protocol)
+PassOwnPtr<TracedValue> InspectorWebSocketCreateEvent::data(Document* document, unsigned long identifier, const KURL& url, const String& protocol)
{
- std::unique_ptr<TracedValue> value = TracedValue::create();
+ OwnPtr<TracedValue> value = TracedValue::create();
value->setInteger("identifier", identifier);
value->setString("url", url.getString());
value->setString("frame", toHexString(document->frame()));
@@ -22,9 +21,9 @@ std::unique_ptr<TracedValue> InspectorWebSocketCreateEvent::data(Document* docum
return value;
}
-std::unique_ptr<TracedValue> InspectorWebSocketEvent::data(Document* document, unsigned long identifier)
+PassOwnPtr<TracedValue> InspectorWebSocketEvent::data(Document* document, unsigned long identifier)
{
- std::unique_ptr<TracedValue> value = TracedValue::create();
+ OwnPtr<TracedValue> value = TracedValue::create();
value->setInteger("identifier", identifier);
value->setString("frame", toHexString(document->frame()));
setCallStack(value.get());

Powered by Google App Engine
This is Rietveld 408576698