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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 2253943004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « media/cdm/simple_cdm_allocator.cc ('k') | media/formats/mpeg/adts_stream_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index d323e0f38e8869225bc85da6fda93345dced462d..7fae81008525d65e0c432e1afb5145f875579564 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -701,7 +701,7 @@ std::unique_ptr<GpuVideoDecoder::SHMBuffer> GpuVideoDecoder::GetSHM(
// CreateSharedMemory() can return NULL during Shutdown.
if (!shm)
return NULL;
- return base::WrapUnique(new SHMBuffer(std::move(shm), size_to_allocate));
+ return base::MakeUnique<SHMBuffer>(std::move(shm), size_to_allocate);
}
std::unique_ptr<SHMBuffer> ret(available_shm_segments_.back());
available_shm_segments_.pop_back();
« no previous file with comments | « media/cdm/simple_cdm_allocator.cc ('k') | media/formats/mpeg/adts_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698