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

Unified Diff: third_party/crashpad/crashpad/util/mach/task_memory.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/util/mach/task_memory.h
diff --git a/third_party/crashpad/crashpad/util/mach/task_memory.h b/third_party/crashpad/crashpad/util/mach/task_memory.h
index 086b0b991513a875c46a9048d44fefdc1bd04bfd..c8caf85cd59ea16d11a0e89159d0edd54a33ae2f 100644
--- a/third_party/crashpad/crashpad/util/mach/task_memory.h
+++ b/third_party/crashpad/crashpad/util/mach/task_memory.h
@@ -18,11 +18,11 @@
#include <mach/mach.h>
#include <sys/types.h>
+#include <memory>
#include <string>
#include "base/mac/scoped_mach_vm.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace crashpad {
@@ -123,7 +123,8 @@ class TaskMemory {
//! \return On success, a MappedMemory object that provides access to the data
//! requested. On faliure, `nullptr`, with a warning logged. Failures can
//! occur, for example, when encountering unmapped or unreadable pages.
- scoped_ptr<MappedMemory> ReadMapped(mach_vm_address_t address, size_t size);
+ std::unique_ptr<MappedMemory> ReadMapped(mach_vm_address_t address,
+ size_t size);
//! \brief Reads a `NUL`-terminated C string from the target task into a
//! string in the current task.
« no previous file with comments | « third_party/crashpad/crashpad/util/mach/exc_server_variants.h ('k') | third_party/crashpad/crashpad/util/mach/task_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698