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

Unified Diff: sandbox/win/src/acl.h

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup nonsfi_sandbox_unittest.cc 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
« no previous file with comments | « sandbox/mac/xpc_message_server.h ('k') | sandbox/win/src/acl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/acl.h
diff --git a/sandbox/win/src/acl.h b/sandbox/win/src/acl.h
index 0749367370cb45c7b7b657e3b1678d4d7ea144c5..7104155ee45a2e2c4d2dc011346438d7f51c15a1 100644
--- a/sandbox/win/src/acl.h
+++ b/sandbox/win/src/acl.h
@@ -8,8 +8,9 @@
#include <AccCtrl.h>
#include <windows.h>
+#include <memory>
+
#include "base/memory/free_deleter.h"
-#include "base/memory/scoped_ptr.h"
#include "sandbox/win/src/sid.h"
namespace sandbox {
@@ -17,7 +18,7 @@ namespace sandbox {
// Returns the default dacl from the token passed in.
bool GetDefaultDacl(
HANDLE token,
- scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl);
+ std::unique_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl);
// Appends an ACE represented by |sid|, |access_mode|, and |access| to
// |old_dacl|. If the function succeeds, new_dacl contains the new dacl and
« no previous file with comments | « sandbox/mac/xpc_message_server.h ('k') | sandbox/win/src/acl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698