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

Unified Diff: ppapi/proxy/video_encoder_resource.cc

Issue 2972053003: Remove ScopedVector from ppapi/. (Closed)
Patch Set: Created 3 years, 5 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/video_encoder_resource.h ('k') | ppapi/proxy/video_encoder_resource_unittest.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 0f7c890a9347996878481745ac450dfdd73689b3..10aa8fac204718326722db9ed97347e785926c32 100644
--- a/ppapi/proxy/video_encoder_resource.cc
+++ b/ppapi/proxy/video_encoder_resource.cc
@@ -401,10 +401,10 @@ void VideoEncoderResource::OnPluginMsgBitstreamBuffers(
new base::SharedMemory(shm_handles[i], true));
CHECK(shm->Map(buffer_length));
- ShmBuffer* buffer = new ShmBuffer(i, std::move(shm));
- shm_buffers_.push_back(buffer);
+ auto buffer = base::MakeUnique<ShmBuffer>(i, std::move(shm));
bitstream_buffer_map_.insert(
std::make_pair(buffer->shm->memory(), buffer->id));
+ shm_buffers_.push_back(std::move(buffer));
}
}
« no previous file with comments | « ppapi/proxy/video_encoder_resource.h ('k') | ppapi/proxy/video_encoder_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698