Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
index 3c2ac91d1143ccd87a792375c917f4a1e048b25e..77df99ec57b377fd1ce1b346d619c5c82849c293 100644 |
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
@@ -110,12 +110,12 @@ void ServiceWorkerGlobalScopeProxy::dispatchExtendableMessageEvent( |
int eventID, |
const WebString& message, |
const WebSecurityOrigin& sourceOrigin, |
- const WebMessagePortChannelArray& webChannels, |
+ WebMessagePortChannelArray webChannels, |
const WebServiceWorkerClientInfo& client) { |
WebSerializedScriptValue value = |
WebSerializedScriptValue::fromString(message); |
- MessagePortArray* ports = |
- MessagePort::toMessagePortArray(m_workerGlobalScope, webChannels); |
+ MessagePortArray* ports = MessagePort::toMessagePortArray( |
+ m_workerGlobalScope, std::move(webChannels)); |
String origin; |
if (!sourceOrigin.isUnique()) |
origin = sourceOrigin.toString(); |
@@ -136,12 +136,12 @@ void ServiceWorkerGlobalScopeProxy::dispatchExtendableMessageEvent( |
int eventID, |
const WebString& message, |
const WebSecurityOrigin& sourceOrigin, |
- const WebMessagePortChannelArray& webChannels, |
+ WebMessagePortChannelArray webChannels, |
std::unique_ptr<WebServiceWorker::Handle> handle) { |
WebSerializedScriptValue value = |
WebSerializedScriptValue::fromString(message); |
- MessagePortArray* ports = |
- MessagePort::toMessagePortArray(m_workerGlobalScope, webChannels); |
+ MessagePortArray* ports = MessagePort::toMessagePortArray( |
+ m_workerGlobalScope, std::move(webChannels)); |
String origin; |
if (!sourceOrigin.isUnique()) |
origin = sourceOrigin.toString(); |