| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index 0e35aeb0d1f832bc905a81296b72355ea462aebd..fb3272ca97c5604dbc30b1fdda1efd92f4077d12 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -445,12 +445,12 @@ void ServiceWorkerContainer::setController(
|
| void ServiceWorkerContainer::dispatchMessageEvent(
|
| std::unique_ptr<WebServiceWorker::Handle> handle,
|
| const WebString& message,
|
| - const WebMessagePortChannelArray& webChannels) {
|
| + WebMessagePortChannelArray webChannels) {
|
| if (!getExecutionContext() || !getExecutionContext()->executingWindow())
|
| return;
|
|
|
| - MessagePortArray* ports =
|
| - MessagePort::toMessagePortArray(getExecutionContext(), webChannels);
|
| + MessagePortArray* ports = MessagePort::toMessagePortArray(
|
| + getExecutionContext(), std::move(webChannels));
|
| RefPtr<SerializedScriptValue> value = SerializedScriptValue::create(message);
|
| ServiceWorker* source = ServiceWorker::from(
|
| getExecutionContext(), WTF::wrapUnique(handle.release()));
|
|
|