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

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

Issue 2308343002: Replaced PassRefPtr copites with moves in Source/modules. (Closed)
Patch Set: Created 4 years, 3 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/DocumentWebSocketChannel.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
index c403fce62ed701cd3173c1e62b583403de941570..950d75f4dbb213f5ccd6d9a8e0572f85538af6b4 100644
--- a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
+++ b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
@@ -107,7 +107,7 @@ DocumentWebSocketChannel::BlobLoader::BlobLoader(PassRefPtr<BlobDataHandle> blob
: m_channel(channel)
, m_loader(FileReaderLoader::create(FileReaderLoader::ReadAsArrayBuffer, this))
{
- m_loader->start(channel->getExecutionContext(), blobDataHandle);
+ m_loader->start(channel->getExecutionContext(), std::move(blobDataHandle));
}
void DocumentWebSocketChannel::BlobLoader::cancel()
@@ -207,7 +207,7 @@ void DocumentWebSocketChannel::send(PassRefPtr<BlobDataHandle> blobDataHandle)
// Since Binary data are not displayed in Inspector, this does not
// affect actual behavior.
InspectorInstrumentation::didSendWebSocketFrame(document(), m_identifier, WebSocketFrame::OpCodeBinary, true, "", 0);
- m_messages.append(new Message(blobDataHandle));
+ m_messages.append(new Message(std::move(blobDataHandle)));
processSendQueue();
}

Powered by Google App Engine
This is Rietveld 408576698