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

Side by Side Diff: sandbox/win/src/acl.cc

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sandbox/win/src/acl.h" 5 #include "sandbox/win/src/acl.h"
6 6
7 #include <aclapi.h> 7 #include <aclapi.h>
8 #include <sddl.h> 8 #include <sddl.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/free_deleter.h"
11 12
12 namespace sandbox { 13 namespace sandbox {
13 14
14 bool GetDefaultDacl( 15 bool GetDefaultDacl(
15 HANDLE token, 16 HANDLE token,
16 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl) { 17 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl) {
17 if (token == NULL) 18 if (token == NULL)
18 return false; 19 return false;
19 20
20 DCHECK(default_dacl != NULL); 21 DCHECK(default_dacl != NULL);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ::LocalFree(new_dacl); 117 ::LocalFree(new_dacl);
117 ::LocalFree(descriptor); 118 ::LocalFree(descriptor);
118 119
119 if (ERROR_SUCCESS != result) 120 if (ERROR_SUCCESS != result)
120 return false; 121 return false;
121 122
122 return true; 123 return true;
123 } 124 }
124 125
125 } // namespace sandbox 126 } // namespace sandbox
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698