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

Unified Diff: remoting/protocol/video_frame_pump.cc

Issue 2627433003: Remove ScopedVector from remoting/. (Closed)
Patch Set: rev 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
« no previous file with comments | « remoting/protocol/video_frame_pump.h ('k') | remoting/protocol/webrtc_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_frame_pump.cc
diff --git a/remoting/protocol/video_frame_pump.cc b/remoting/protocol/video_frame_pump.cc
index 8cb30e4bf82d706d0426784536ffd12254489e94..68324ecbdc8e01863ed2c093334af56c7065085d 100644
--- a/remoting/protocol/video_frame_pump.cc
+++ b/remoting/protocol/video_frame_pump.cc
@@ -238,8 +238,9 @@ void VideoFramePump::OnVideoPacketSent() {
// Send next packet if any.
if (!pending_packets_.empty()) {
- std::unique_ptr<PacketWithTimestamps> next(pending_packets_.front());
- pending_packets_.weak_erase(pending_packets_.begin());
+ std::unique_ptr<PacketWithTimestamps> next =
+ std::move(pending_packets_.front());
+ pending_packets_.erase(pending_packets_.begin());
SendPacket(std::move(next));
}
}
« no previous file with comments | « remoting/protocol/video_frame_pump.h ('k') | remoting/protocol/webrtc_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698