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

Unified Diff: media/base/byte_queue.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android Created 4 years, 8 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/base/byte_queue.h ('k') | media/base/cdm_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/byte_queue.cc
diff --git a/media/base/byte_queue.cc b/media/base/byte_queue.cc
index 263f82a1398d776fc1d8c8b939967be455cccc3b..6ff60e648671135989c7ad207cbee21512b3dd69 100644
--- a/media/base/byte_queue.cc
+++ b/media/base/byte_queue.cc
@@ -39,7 +39,7 @@ void ByteQueue::Push(const uint8_t* data, int size) {
// Sanity check to make sure we didn't overflow.
CHECK_GT(new_size, size_);
- scoped_ptr<uint8_t[]> new_buffer(new uint8_t[new_size]);
+ std::unique_ptr<uint8_t[]> new_buffer(new uint8_t[new_size]);
// Copy the data from the old buffer to the start of the new one.
if (used_ > 0)
« no previous file with comments | « media/base/byte_queue.h ('k') | media/base/cdm_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698