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

Unified Diff: media/base/data_buffer.cc

Issue 9015015: Take advantage of the new Pass() machinery on scoped_ptr{,_malloc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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/filter_collection.h » ('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 31b3c1c75ee2965e2b8ac10e108722672504df0e..89eb8bedd10c14835328e3f15dd9228bfe6e4edc 100644
--- a/media/base/data_buffer.cc
+++ b/media/base/data_buffer.cc
@@ -7,8 +7,8 @@
namespace media {
-DataBuffer::DataBuffer(uint8* buffer, size_t buffer_size)
- : data_(buffer),
+DataBuffer::DataBuffer(scoped_array<uint8> buffer, size_t buffer_size)
+ : data_(buffer.Pass()),
buffer_size_(buffer_size),
data_size_(buffer_size) {
}
« no previous file with comments | « media/base/data_buffer.h ('k') | media/base/filter_collection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698