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

Unified Diff: sandbox/win/wow_helper/service64_resolver.cc

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 9 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: sandbox/win/wow_helper/service64_resolver.cc
diff --git a/sandbox/win/wow_helper/service64_resolver.cc b/sandbox/win/wow_helper/service64_resolver.cc
index 0424d9fdddeb994e75cfb6585484e93b84fad696..1e71b50d78390898d8a36ebef32cbad018045721 100644
--- a/sandbox/win/wow_helper/service64_resolver.cc
+++ b/sandbox/win/wow_helper/service64_resolver.cc
@@ -7,8 +7,9 @@
#include <limits.h>
#include <stddef.h>
+#include <memory>
+
#include "base/bit_cast.h"
-#include "base/memory/scoped_ptr.h"
#include "sandbox/win/wow_helper/target_code.h"
namespace {
@@ -214,7 +215,7 @@ NTSTATUS Service64ResolverThunk::Setup(const void* target_module,
return ret;
size_t thunk_bytes = GetThunkSize();
- scoped_ptr<char[]> thunk_buffer(new char[thunk_bytes]);
+ std::unique_ptr<char[]> thunk_buffer(new char[thunk_bytes]);
ServiceFullThunk* thunk = reinterpret_cast<ServiceFullThunk*>(
thunk_buffer.get());

Powered by Google App Engine
This is Rietveld 408576698