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

Unified Diff: remoting/protocol/fake_video_renderer.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/fake_authenticator.cc ('k') | remoting/protocol/http_ice_config_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_video_renderer.cc
diff --git a/remoting/protocol/fake_video_renderer.cc b/remoting/protocol/fake_video_renderer.cc
index bcad0e56ec2667e29d0fc64cfd2a4a8583e17a5f..e5a77ae9295a0b911232a7634be4e4f559d180a0 100644
--- a/remoting/protocol/fake_video_renderer.cc
+++ b/remoting/protocol/fake_video_renderer.cc
@@ -45,7 +45,7 @@ void FakeFrameConsumer::set_on_frame_callback(base::Closure on_frame_callback) {
std::unique_ptr<webrtc::DesktopFrame> FakeFrameConsumer::AllocateFrame(
const webrtc::DesktopSize& size) {
CHECK(thread_checker_.CalledOnValidThread());
- return base::WrapUnique(new webrtc::BasicDesktopFrame(size));
+ return base::MakeUnique<webrtc::BasicDesktopFrame>(size);
}
void FakeFrameConsumer::DrawFrame(std::unique_ptr<webrtc::DesktopFrame> frame,
« no previous file with comments | « remoting/protocol/fake_authenticator.cc ('k') | remoting/protocol/http_ice_config_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698