Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
index d5a99c61128cdf872af99e1cca3821f5d7368ef3..7434831524dc0b1d1e99461b9c73253cb6efb3ab 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
@@ -70,13 +70,13 @@ void ServiceWorkerClient::postMessage(ScriptState* scriptState, |
ExceptionState& exceptionState) { |
ExecutionContext* context = scriptState->getExecutionContext(); |
// Disentangle the port in preparation for sending it to the remote context. |
- std::unique_ptr<MessagePortChannelArray> channels = |
+ MessagePortChannelArray channels = |
MessagePort::disentanglePorts(context, ports, exceptionState); |
if (exceptionState.hadException()) |
return; |
WebString messageString = message->toWireString(); |
- std::unique_ptr<WebMessagePortChannelArray> webChannels = |
+ WebMessagePortChannelArray webChannels = |
MessagePort::toWebMessagePortChannelArray(std::move(channels)); |
ServiceWorkerGlobalScopeClient::from(context)->postMessageToClient( |
m_uuid, messageString, std::move(webChannels)); |