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

Unified Diff: remoting/protocol/client_video_dispatcher.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (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
Index: remoting/protocol/client_video_dispatcher.cc
diff --git a/remoting/protocol/client_video_dispatcher.cc b/remoting/protocol/client_video_dispatcher.cc
index a98bee327ebc384d75cabc5b60f5d19574fa2214..a3c46ab1ee68c1483554d144a786f621430c5404 100644
--- a/remoting/protocol/client_video_dispatcher.cc
+++ b/remoting/protocol/client_video_dispatcher.cc
@@ -43,7 +43,8 @@ void ClientVideoDispatcher::ProcessVideoPacket(
int frame_id = video_packet->frame_id();
if (!video_packet->has_frame_id()) {
- video_stub_->ProcessVideoPacket(video_packet.Pass(), done_runner.Release());
+ video_stub_->ProcessVideoPacket(std::move(video_packet),
+ done_runner.Release());
return;
}
@@ -51,7 +52,7 @@ void ClientVideoDispatcher::ProcessVideoPacket(
pending_frames_.insert(pending_frames_.end(), PendingFrame(frame_id));
video_stub_->ProcessVideoPacket(
- video_packet.Pass(),
+ std::move(video_packet),
base::Bind(&ClientVideoDispatcher::OnPacketDone,
weak_factory_.GetWeakPtr(), pending_frame));
}

Powered by Google App Engine
This is Rietveld 408576698