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

Unified Diff: third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.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
« no previous file with comments | « third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.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/WorkerWebSocketChannel.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp b/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
index a774cda0c5d7cc5d5cef12c1621c4c9c6bc8ae04..75c99cccce38aed86b79c3b7f75182ea81940c11 100644
--- a/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
+++ b/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp
@@ -127,7 +127,7 @@ void WorkerWebSocketChannel::send(const DOMArrayBuffer& binaryData, unsigned byt
void WorkerWebSocketChannel::send(PassRefPtr<BlobDataHandle> blobData)
{
ASSERT(m_bridge);
- m_bridge->send(blobData);
+ m_bridge->send(std::move(blobData));
}
void WorkerWebSocketChannel::close(int code, const String& reason)
@@ -218,7 +218,7 @@ void Peer::sendBlob(PassRefPtr<BlobDataHandle> blobData)
{
ASSERT(isMainThread());
if (m_mainWebSocketChannel)
- m_mainWebSocketChannel->send(blobData);
+ m_mainWebSocketChannel->send(std::move(blobData));
}
void Peer::close(int code, const String& reason)
« no previous file with comments | « third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698