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

Unified Diff: third_party/crashpad/crashpad/snapshot/mac/memory_snapshot_mac.cc

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/snapshot/mac/memory_snapshot_mac.cc
diff --git a/third_party/crashpad/crashpad/snapshot/mac/memory_snapshot_mac.cc b/third_party/crashpad/crashpad/snapshot/mac/memory_snapshot_mac.cc
index 4ded2512564e7d10aeb4d87ec5ed785cc27fb1ef..adc77520c240c854fed2f892ce38ad31d5e11911 100644
--- a/third_party/crashpad/crashpad/snapshot/mac/memory_snapshot_mac.cc
+++ b/third_party/crashpad/crashpad/snapshot/mac/memory_snapshot_mac.cc
@@ -14,7 +14,8 @@
#include "snapshot/mac/memory_snapshot_mac.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "util/mach/task_memory.h"
namespace crashpad {
@@ -58,7 +59,7 @@ bool MemorySnapshotMac::Read(Delegate* delegate) const {
return delegate->MemorySnapshotDelegateRead(nullptr, size_);
}
- scoped_ptr<uint8_t[]> buffer(new uint8_t[size_]);
+ std::unique_ptr<uint8_t[]> buffer(new uint8_t[size_]);
if (!process_reader_->Memory()->Read(address_, size_, buffer.get())) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698