| 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 107ce6c524be9017a4ad5de274336ba5a0e79adb..ae934b81afab65dedae805e1e8d90693ecab14fc 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp
|
| @@ -78,8 +78,8 @@ void ServiceWorkerClient::postMessage(ExecutionContext* context, PassRefPtr<Seri
|
| context->addConsoleMessage(ConsoleMessage::create(JSMessageSource, WarningMessageLevel, "ServiceWorkerClient cannot send an ArrayBuffer as a transferable object yet. See http://crbug.com/511119"));
|
|
|
| WebString messageString = message->toWireString();
|
| - OwnPtr<WebMessagePortChannelArray> webChannels = MessagePort::toWebMessagePortChannelArray(channels.release());
|
| - ServiceWorkerGlobalScopeClient::from(context)->postMessageToClient(m_uuid, messageString, webChannels.release());
|
| + OwnPtr<WebMessagePortChannelArray> webChannels = MessagePort::toWebMessagePortChannelArray(std::move(channels));
|
| + ServiceWorkerGlobalScopeClient::from(context)->postMessageToClient(m_uuid, messageString, std::move(webChannels));
|
| }
|
|
|
| } // namespace blink
|
|
|