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

Unified Diff: media/base/stream_parser_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/stream_parser.h ('k') | media/base/test_data_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser_buffer.cc
diff --git a/media/base/stream_parser_buffer.cc b/media/base/stream_parser_buffer.cc
index 9577821513773c8a15bf486977ec7ac1dbe49651..2be4dbefd71f591bf26539e05c594101798a9090 100644
--- a/media/base/stream_parser_buffer.cc
+++ b/media/base/stream_parser_buffer.cc
@@ -5,6 +5,7 @@
#include "media/base/stream_parser_buffer.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "media/base/timestamp_constants.h"
namespace media {
@@ -31,10 +32,9 @@ static scoped_refptr<StreamParserBuffer> CopyBuffer(
copied_buffer->set_splice_timestamp(buffer.splice_timestamp());
const DecryptConfig* decrypt_config = buffer.decrypt_config();
if (decrypt_config) {
- copied_buffer->set_decrypt_config(
- make_scoped_ptr(new DecryptConfig(decrypt_config->key_id(),
- decrypt_config->iv(),
- decrypt_config->subsamples())));
+ copied_buffer->set_decrypt_config(base::WrapUnique(
+ new DecryptConfig(decrypt_config->key_id(), decrypt_config->iv(),
+ decrypt_config->subsamples())));
}
return copied_buffer;
« no previous file with comments | « media/base/stream_parser.h ('k') | media/base/test_data_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698