Use std::move() instead of scoped_ptr<>::Pass() in remoting/protocol
Now there is a presubmit check that doesn't allow Pass() anymore.
See https://www.chromium.org/rvalue-references for information
about std::move in chromium.
Review URL: https://codereview.chromium.org/1534193004
Cr-Commit-Position: refs/heads/master@{#366687}
diff --git a/remoting/protocol/client_video_dispatcher.cc b/remoting/protocol/client_video_dispatcher.cc
index a98bee32..a3c46ab1 100644
--- a/remoting/protocol/client_video_dispatcher.cc
+++ b/remoting/protocol/client_video_dispatcher.cc
@@ -43,7 +43,8 @@
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 @@
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));
}