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

Unified Diff: ppapi/proxy/video_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 | « ppapi/proxy/flash_font_file_resource.cc ('k') | ppapi/proxy/vpn_provider_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_encoder_resource.cc
diff --git a/ppapi/proxy/video_encoder_resource.cc b/ppapi/proxy/video_encoder_resource.cc
index 89dd9f1200372f130f6e37fe16e4735ebcb112dd..0f7c890a9347996878481745ac450dfdd73689b3 100644
--- a/ppapi/proxy/video_encoder_resource.cc
+++ b/ppapi/proxy/video_encoder_resource.cc
@@ -351,8 +351,7 @@ void VideoEncoderResource::OnPluginMsgGetVideoFramesReply(
if (!buffer_manager_.SetBuffers(
frame_count, frame_length,
- base::WrapUnique(new base::SharedMemory(buffer_handle, false)),
- true)) {
+ base::MakeUnique<base::SharedMemory>(buffer_handle, false), true)) {
NotifyError(PP_ERROR_FAILED);
return;
}
« no previous file with comments | « ppapi/proxy/flash_font_file_resource.cc ('k') | ppapi/proxy/vpn_provider_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698