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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_module_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_module_writer.h
diff --git a/third_party/crashpad/crashpad/minidump/minidump_module_writer.h b/third_party/crashpad/crashpad/minidump/minidump_module_writer.h
index 0b047e3f3301e4d81e00d95e5dc3faff46234231..8d63866a25fbb14d749cab048d86032d7f936c03 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_module_writer.h
+++ b/third_party/crashpad/crashpad/minidump/minidump_module_writer.h
@@ -21,11 +21,11 @@
#include <sys/types.h>
#include <time.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "minidump/minidump_extensions.h"
#include "minidump/minidump_stream_writer.h"
@@ -218,7 +218,7 @@ class MinidumpModuleWriter final : public internal::MinidumpWritable {
//!
//! \note Valid in #kStateMutable.
void SetCodeViewRecord(
- scoped_ptr<MinidumpModuleCodeViewRecordWriter> codeview_record);
+ std::unique_ptr<MinidumpModuleCodeViewRecordWriter> codeview_record);
//! \brief Arranges for MINIDUMP_MODULE::MiscRecord to point to an
//! IMAGE_DEBUG_MISC object to be written by \a misc_debug_record.
@@ -228,7 +228,7 @@ class MinidumpModuleWriter final : public internal::MinidumpWritable {
//!
//! \note Valid in #kStateMutable.
void SetMiscDebugRecord(
- scoped_ptr<MinidumpModuleMiscDebugRecordWriter> misc_debug_record);
+ std::unique_ptr<MinidumpModuleMiscDebugRecordWriter> misc_debug_record);
//! \brief Sets IMAGE_DEBUG_MISC::BaseOfImage.
void SetImageBaseAddress(uint64_t image_base_address) {
@@ -298,9 +298,9 @@ class MinidumpModuleWriter final : public internal::MinidumpWritable {
private:
MINIDUMP_MODULE module_;
- scoped_ptr<internal::MinidumpUTF16StringWriter> name_;
- scoped_ptr<MinidumpModuleCodeViewRecordWriter> codeview_record_;
- scoped_ptr<MinidumpModuleMiscDebugRecordWriter> misc_debug_record_;
+ std::unique_ptr<internal::MinidumpUTF16StringWriter> name_;
+ std::unique_ptr<MinidumpModuleCodeViewRecordWriter> codeview_record_;
+ std::unique_ptr<MinidumpModuleMiscDebugRecordWriter> misc_debug_record_;
DISALLOW_COPY_AND_ASSIGN(MinidumpModuleWriter);
};
@@ -329,7 +329,7 @@ class MinidumpModuleListWriter final : public internal::MinidumpStreamWriter {
//! overall tree of internal::MinidumpWritable objects.
//!
//! \note Valid in #kStateMutable.
- void AddModule(scoped_ptr<MinidumpModuleWriter> module);
+ void AddModule(std::unique_ptr<MinidumpModuleWriter> module);
protected:
// MinidumpWritable:

Powered by Google App Engine
This is Rietveld 408576698