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