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

Unified Diff: media/base/byte_queue.h

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/bitstream_buffer.h ('k') | media/base/byte_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/byte_queue.h
diff --git a/media/base/byte_queue.h b/media/base/byte_queue.h
index 9a14ded956680f72fc01eabfc8a47fdefdfe5db0..d034da493c084638729fc3dacda31fc15d66cd5d 100644
--- a/media/base/byte_queue.h
+++ b/media/base/byte_queue.h
@@ -8,8 +8,9 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
namespace media {
@@ -42,7 +43,7 @@ class MEDIA_EXPORT ByteQueue {
// Returns a pointer to the front of the queue.
uint8_t* front() const;
- scoped_ptr<uint8_t[]> buffer_;
+ std::unique_ptr<uint8_t[]> buffer_;
// Size of |buffer_|.
size_t size_;
« no previous file with comments | « media/base/bitstream_buffer.h ('k') | media/base/byte_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698