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

Unified Diff: media/formats/mp4/box_reader.cc

Issue 1874413003: Convert media/formats to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: media/formats/mp4/box_reader.cc
diff --git a/media/formats/mp4/box_reader.cc b/media/formats/mp4/box_reader.cc
index 2ff5fe9588a29d188242f66f883e2e0e7e9f11a5..3b28bcaa3cfea0dfc681f4f65ae8ecebfbf06f83 100644
--- a/media/formats/mp4/box_reader.cc
+++ b/media/formats/mp4/box_reader.cc
@@ -6,10 +6,11 @@
#include <stddef.h>
#include <string.h>
+
#include <algorithm>
+#include <memory>
#include <set>
-#include "base/memory/scoped_ptr.h"
#include "media/formats/mp4/box_definitions.h"
namespace media {
@@ -116,7 +117,8 @@ BoxReader* BoxReader::ReadTopLevelBox(const uint8_t* buf,
const int buf_size,
const scoped_refptr<MediaLog>& media_log,
bool* err) {
- scoped_ptr<BoxReader> reader(new BoxReader(buf, buf_size, media_log, false));
+ std::unique_ptr<BoxReader> reader(
+ new BoxReader(buf, buf_size, media_log, false));
if (!reader->ReadHeader(err))
return NULL;

Powered by Google App Engine
This is Rietveld 408576698