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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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/core/dom/MessagePort.cpp
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.cpp b/third_party/WebKit/Source/core/dom/MessagePort.cpp
index 7aeb7e25d9066de9da6de70fbfd903850e212290..3bfd5bd6e8322793789ca9dc27596910980cc5af 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.cpp
+++ b/third_party/WebKit/Source/core/dom/MessagePort.cpp
@@ -218,7 +218,7 @@ void MessagePort::dispatchMessages() {
MessagePortArray* ports =
MessagePort::entanglePorts(*getExecutionContext(), std::move(channels));
- Event* evt = MessageEvent::create(ports, message.release());
+ Event* evt = MessageEvent::create(ports, std::move(message));
dispatchEvent(evt);
}

Powered by Google App Engine
This is Rietveld 408576698