| 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 7816a935aacd11cffeb2fdd8ba19fd03a9ed8e9d..43f96911fff60d40f2fd5eedbe4a043eaf914cd7 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp
|
| @@ -68,13 +68,13 @@ void ServiceWorkerClient::postMessage(ExecutionContext* context,
|
| const MessagePortArray& ports,
|
| ExceptionState& exceptionState) {
|
| // 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));
|
|
|