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

Unified Diff: remoting/protocol/video_frame_pump.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/transport_context.cc ('k') | remoting/protocol/video_frame_pump_unittest.cc » ('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 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()));
}
« no previous file with comments | « remoting/protocol/transport_context.cc ('k') | remoting/protocol/video_frame_pump_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698