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

Unified Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp

Issue 2007983006: Rename OwnPtr::clear() to reset() in modules/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698