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

Unified Diff: media/base/data_buffer.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/data_buffer.h ('k') | media/base/data_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer.cc
diff --git a/media/base/data_buffer.cc b/media/base/data_buffer.cc
index 0c103f24e29512927af55329a415d7145d0de0c0..9a693eb5188a1ff86a89c0f1c85083a1720f7dbb 100644
--- a/media/base/data_buffer.cc
+++ b/media/base/data_buffer.cc
@@ -15,7 +15,7 @@ DataBuffer::DataBuffer(int buffer_size)
data_.reset(new uint8_t[buffer_size_]);
}
-DataBuffer::DataBuffer(scoped_ptr<uint8_t[]> buffer, int buffer_size)
+DataBuffer::DataBuffer(std::unique_ptr<uint8_t[]> buffer, int buffer_size)
: data_(std::move(buffer)),
buffer_size_(buffer_size),
data_size_(buffer_size) {
« no previous file with comments | « media/base/data_buffer.h ('k') | media/base/data_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698