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

Unified Diff: remoting/client/dual_buffer_frame_consumer.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/client/chromoting_client.cc ('k') | remoting/client/gl_desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/dual_buffer_frame_consumer.cc
diff --git a/remoting/client/dual_buffer_frame_consumer.cc b/remoting/client/dual_buffer_frame_consumer.cc
index 1339a0b79adc74e589343a2942607eb356970717..662e726411e8b1dcde14aa36ee6c0787c6331355 100644
--- a/remoting/client/dual_buffer_frame_consumer.cc
+++ b/remoting/client/dual_buffer_frame_consumer.cc
@@ -58,9 +58,9 @@ std::unique_ptr<webrtc::DesktopFrame> DualBufferFrameConsumer::AllocateFrame(
// Both buffers are reallocated whenever screen size changes.
if (!buffers_[0] || !buffers_[0]->size().equals(size)) {
buffers_[0] = webrtc::SharedDesktopFrame::Wrap(
- base::WrapUnique(new webrtc::BasicDesktopFrame(size)));
+ base::MakeUnique<webrtc::BasicDesktopFrame>(size));
buffers_[1] = webrtc::SharedDesktopFrame::Wrap(
- base::WrapUnique(new webrtc::BasicDesktopFrame(size)));
+ base::MakeUnique<webrtc::BasicDesktopFrame>(size));
buffer_1_mask_.Clear();
current_buffer_ = 0;
} else {
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/gl_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698