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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased 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/core/workers/InProcessWorkerMessagingProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
index ecfa490533d65703cc607645be3c90fb569a516c..da8967ae676ffcbdafcba1d65ebf949d2c9d669f 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp
@@ -64,7 +64,7 @@ void processMessageOnWorkerGlobalScope(PassRefPtr<SerializedScriptValue> message
{
WorkerGlobalScope* globalScope = toWorkerGlobalScope(scriptContext);
MessagePortArray* ports = MessagePort::entanglePorts(*scriptContext, std::move(channels));
- globalScope->dispatchEvent(MessageEvent::create(ports, message));
+ globalScope->dispatchEvent(MessageEvent::create(ports, std::move(message)));
workerObjectProxy->confirmMessageFromWorkerObject();
workerObjectProxy->startPendingActivityTimer();
}
@@ -128,7 +128,7 @@ void InProcessWorkerMessagingProxy::postMessageToWorkerObject(PassRefPtr<Seriali
return;
MessagePortArray* ports = MessagePort::entanglePorts(*getExecutionContext(), std::move(channels));
- m_workerObject->dispatchEvent(MessageEvent::create(ports, message));
+ m_workerObject->dispatchEvent(MessageEvent::create(ports, std::move(message)));
}
void InProcessWorkerMessagingProxy::postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue> message, std::unique_ptr<MessagePortChannelArray> channels)

Powered by Google App Engine
This is Rietveld 408576698