| Index: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
|
| diff --git a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
|
| index 1c16de25e2536b3649da41ccb60c675d3e7961b9..a59823a4b10a6ca9076adeec97116797604f7bdd 100644
|
| --- a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
|
| +++ b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
|
| @@ -281,7 +281,7 @@ void DocumentWebSocketChannel::disconnect()
|
| InspectorInstrumentation::didCloseWebSocket(document(), m_identifier);
|
| }
|
| abortAsyncOperations();
|
| - m_handle.clear();
|
| + m_handle.reset();
|
| m_client = nullptr;
|
| m_identifier = 0;
|
| }
|
| @@ -391,7 +391,7 @@ void DocumentWebSocketChannel::abortAsyncOperations()
|
|
|
| void DocumentWebSocketChannel::handleDidClose(bool wasClean, unsigned short code, const String& reason)
|
| {
|
| - m_handle.clear();
|
| + m_handle.reset();
|
| abortAsyncOperations();
|
| if (!m_client) {
|
| return;
|
| @@ -519,7 +519,7 @@ void DocumentWebSocketChannel::didClose(WebSocketHandle* handle, bool wasClean,
|
| ASSERT(m_handle);
|
| ASSERT(handle == m_handle);
|
|
|
| - m_handle.clear();
|
| + m_handle.reset();
|
|
|
| if (m_identifier) {
|
| TRACE_EVENT_INSTANT1("devtools.timeline", "WebSocketDestroy", TRACE_EVENT_SCOPE_THREAD, "data", InspectorWebSocketEvent::data(document(), m_identifier));
|
|
|