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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_memory_writer.h

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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: third_party/crashpad/crashpad/minidump/minidump_memory_writer.h
diff --git a/third_party/crashpad/crashpad/minidump/minidump_memory_writer.h b/third_party/crashpad/crashpad/minidump/minidump_memory_writer.h
index e3e33e5c65bba39bc69ea0741997ebb823f5ff3b..c23997a27d7c40eac275f00025971f372f0e7c42 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_memory_writer.h
+++ b/third_party/crashpad/crashpad/minidump/minidump_memory_writer.h
@@ -20,10 +20,10 @@
#include <stdint.h>
#include <sys/types.h>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "minidump/minidump_stream_writer.h"
#include "minidump/minidump_writable.h"
#include "util/file/file_io.h"
@@ -52,7 +52,7 @@ class MinidumpMemoryWriter : public internal::MinidumpWritable {
//!
//! \return An object of a MinidumpMemoryWriter subclass initialized using the
//! source data in \a memory_snapshot.
- static scoped_ptr<MinidumpMemoryWriter> CreateFromSnapshot(
+ static std::unique_ptr<MinidumpMemoryWriter> CreateFromSnapshot(
const MemorySnapshot* memory_snapshot);
//! \brief Returns a MINIDUMP_MEMORY_DESCRIPTOR referencing the data that this
@@ -152,7 +152,7 @@ class MinidumpMemoryListWriter final : public internal::MinidumpStreamWriter {
//! the overall tree of internal::MinidumpWritable objects.
//!
//! \note Valid in #kStateMutable.
- void AddMemory(scoped_ptr<MinidumpMemoryWriter> memory_writer);
+ void AddMemory(std::unique_ptr<MinidumpMemoryWriter> memory_writer);
//! \brief Adds a MinidumpMemoryWriter that’s a child of another
//! internal::MinidumpWritable object to the MINIDUMP_MEMORY_LIST.

Powered by Google App Engine
This is Rietveld 408576698