Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1019)

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Address feedback from yusuf Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 fc598759a55cd054b1a42bdef9fb241710551f72..1216154d9603e94112a194b5afd3ec6b4d23e50c 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
@@ -444,12 +444,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()));

Powered by Google App Engine
This is Rietveld 408576698