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

Unified Diff: ppapi/proxy/audio_encoder_resource.cc

Issue 2254973004: 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 | « no previous file | ppapi/proxy/flash_font_file_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/audio_encoder_resource.cc
diff --git a/ppapi/proxy/audio_encoder_resource.cc b/ppapi/proxy/audio_encoder_resource.cc
index a5c2ec026577674e317f9535759f8d1baecbe509..0e88c3e83694403ea7dd1fe9f9cae2180e403881 100644
--- a/ppapi/proxy/audio_encoder_resource.cc
+++ b/ppapi/proxy/audio_encoder_resource.cc
@@ -232,8 +232,7 @@ void AudioEncoderResource::OnPluginMsgInitializeReply(
if (!params.TakeSharedMemoryHandleAtIndex(0, &buffer_handle) ||
!audio_buffer_manager_.SetBuffers(
audio_buffer_count, audio_buffer_size,
- base::WrapUnique(new base::SharedMemory(buffer_handle, false)),
- true)) {
+ base::MakeUnique<base::SharedMemory>(buffer_handle, false), true)) {
RunCallback(&initialize_callback_, PP_ERROR_NOMEMORY);
return;
}
@@ -242,8 +241,7 @@ void AudioEncoderResource::OnPluginMsgInitializeReply(
if (!params.TakeSharedMemoryHandleAtIndex(1, &buffer_handle) ||
!bitstream_buffer_manager_.SetBuffers(
bitstream_buffer_count, bitstream_buffer_size,
- base::WrapUnique(new base::SharedMemory(buffer_handle, false)),
- false)) {
+ base::MakeUnique<base::SharedMemory>(buffer_handle, false), false)) {
RunCallback(&initialize_callback_, PP_ERROR_NOMEMORY);
return;
}
« no previous file with comments | « no previous file | ppapi/proxy/flash_font_file_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698