Index: remoting/protocol/video_frame_pump.cc |
diff --git a/remoting/protocol/video_frame_pump.cc b/remoting/protocol/video_frame_pump.cc |
index c68fff84d5ba41cfabcf25543b2d9b1ae228e694..5e24d40fb0d5ec1550720d7f42ab3b603b729f44 100644 |
--- a/remoting/protocol/video_frame_pump.cc |
+++ b/remoting/protocol/video_frame_pump.cc |
@@ -184,8 +184,8 @@ VideoFramePump::EncodeFrame(VideoEncoder* encoder, |
(timestamps->encode_ended_time - timestamps->encode_started_time) |
.InMilliseconds()); |
- return base::WrapUnique( |
- new PacketWithTimestamps(std::move(packet), std::move(timestamps))); |
+ return base::MakeUnique<PacketWithTimestamps>(std::move(packet), |
+ std::move(timestamps)); |
} |
void VideoFramePump::OnFrameEncoded( |
@@ -267,7 +267,7 @@ void VideoFramePump::SendKeepAlivePacket() { |
DCHECK(thread_checker_.CalledOnValidThread()); |
video_stub_->ProcessVideoPacket( |
- base::WrapUnique(new VideoPacket()), |
+ base::MakeUnique<VideoPacket>(), |
base::Bind(&VideoFramePump::OnKeepAlivePacketSent, |
weak_factory_.GetWeakPtr())); |
} |