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

Unified Diff: media/cast/logging/log_deserializer.cc

Issue 1905763002: Convert //media/cast from scoped_ptr 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
« no previous file with comments | « media/cast/logging/encoding_event_subscriber_unittest.cc ('k') | media/cast/logging/log_event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/log_deserializer.cc
diff --git a/media/cast/logging/log_deserializer.cc b/media/cast/logging/log_deserializer.cc
index 3a5810632989af7892a137b004cfb61c3560d563..d5a336b10f88367084da216b00055ee87b5b4485 100644
--- a/media/cast/logging/log_deserializer.cc
+++ b/media/cast/logging/log_deserializer.cc
@@ -6,10 +6,10 @@
#include <stdint.h>
+#include <memory>
#include <utility>
#include "base/big_endian.h"
-#include "base/memory/scoped_ptr.h"
#include "third_party/zlib/zlib.h"
using media::cast::FrameEventMap;
@@ -231,7 +231,7 @@ bool DeserializeEvents(const char* data,
DCHECK_GT(data_bytes, 0);
if (compressed) {
- scoped_ptr<char[]> uncompressed(new char[kMaxUncompressedBytes]);
+ std::unique_ptr<char[]> uncompressed(new char[kMaxUncompressedBytes]);
int uncompressed_bytes = 0;
if (!Uncompress(data,
data_bytes,
« no previous file with comments | « media/cast/logging/encoding_event_subscriber_unittest.cc ('k') | media/cast/logging/log_event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698