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

Unified Diff: third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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/broadcastchannel/BroadcastChannel.cpp
diff --git a/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp b/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
index 9d6eb3fa7a1c6a1c5acce86c39e703658ee7f041..1aa0de520c59c5b62c2fb005488390302e7f07ac 100644
--- a/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
+++ b/third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp
@@ -105,7 +105,7 @@ void BroadcastChannel::OnMessage(const WTF::Vector<uint8_t>& message) {
: reinterpret_cast<const char*>(&message.front()),
message.size());
MessageEvent* event = MessageEvent::Create(
- nullptr, value.Release(),
+ nullptr, std::move(value),
GetExecutionContext()->GetSecurityOrigin()->ToString());
event->SetTarget(this);
bool success = GetExecutionContext()->GetEventQueue()->EnqueueEvent(event);

Powered by Google App Engine
This is Rietveld 408576698