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

Unified Diff: media/cast/net/udp_transport.cc

Issue 1544313002: Convert Pass()→std::move() in //media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « media/cast/net/rtcp/rtcp_builder_unittest.cc ('k') | media/cast/receiver/audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/udp_transport.cc
diff --git a/media/cast/net/udp_transport.cc b/media/cast/net/udp_transport.cc
index 316d4fff9e937221255313664a4249c6dcb44ea4..97ec7f4aaeec529dd1e605ce767f5e371bb2784f 100644
--- a/media/cast/net/udp_transport.cc
+++ b/media/cast/net/udp_transport.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -182,7 +183,7 @@ void UdpTransport::ReceiveNextPacket(int length_or_status) {
VLOG(1) << "Setting remote address from first received packet: "
<< remote_addr_.ToString();
next_packet_->resize(length_or_status);
- if (!packet_receiver_.Run(next_packet_.Pass())) {
+ if (!packet_receiver_.Run(std::move(next_packet_))) {
VLOG(1) << "Packet was not valid, resetting remote address.";
remote_addr_ = net::IPEndPoint();
}
@@ -191,7 +192,7 @@ void UdpTransport::ReceiveNextPacket(int length_or_status) {
<< recv_addr_.ToString() << ".";
} else {
next_packet_->resize(length_or_status);
- packet_receiver_.Run(next_packet_.Pass());
+ packet_receiver_.Run(std::move(next_packet_));
}
length_or_status = net::ERR_IO_PENDING;
}
« no previous file with comments | « media/cast/net/rtcp/rtcp_builder_unittest.cc ('k') | media/cast/receiver/audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698