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

Unified Diff: media/cast/logging/log_serializer.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/log_event_dispatcher.cc ('k') | media/cast/logging/raw_event_subscriber_bundle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/log_serializer.cc
diff --git a/media/cast/logging/log_serializer.cc b/media/cast/logging/log_serializer.cc
index eec4b2b83fbe1598d825b6822c29458d02c644e0..d5bbfb5e604cf06cc03879a0f3ac97553706dbdd 100644
--- a/media/cast/logging/log_serializer.cc
+++ b/media/cast/logging/log_serializer.cc
@@ -20,9 +20,10 @@
#include <stdint.h>
+#include <memory>
+
#include "base/big_endian.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "third_party/zlib/zlib.h"
namespace media {
@@ -164,7 +165,8 @@ bool SerializeEvents(const LogMetadata& log_metadata,
if (compress) {
// Allocate a reasonably large temp buffer to hold uncompressed data.
- scoped_ptr<char[]> uncompressed_buffer(new char[kMaxUncompressedBytes]);
+ std::unique_ptr<char[]> uncompressed_buffer(
+ new char[kMaxUncompressedBytes]);
int uncompressed_bytes;
bool success = DoSerializeEvents(log_metadata,
frame_events,
« no previous file with comments | « media/cast/logging/log_event_dispatcher.cc ('k') | media/cast/logging/raw_event_subscriber_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698