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

Unified Diff: third_party/crashpad/crashpad/snapshot/win/memory_snapshot_win.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/win/memory_snapshot_win.cc
diff --git a/third_party/crashpad/crashpad/snapshot/win/memory_snapshot_win.cc b/third_party/crashpad/crashpad/snapshot/win/memory_snapshot_win.cc
index 1861a885324dab10a6a637c22152d31744080e59..666cb93693b64e8432d6583477acba5bcb9650d8 100644
--- a/third_party/crashpad/crashpad/snapshot/win/memory_snapshot_win.cc
+++ b/third_party/crashpad/crashpad/snapshot/win/memory_snapshot_win.cc
@@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <memory>
+
#include "snapshot/win/memory_snapshot_win.h"
-#include "base/memory/scoped_ptr.h"
namespace crashpad {
namespace internal {
@@ -59,7 +60,7 @@ bool MemorySnapshotWin::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_->ReadMemory(address_, size_, buffer.get())) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698