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

Side by Side Diff: sandbox/win/src/process_thread_policy.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/process_thread_policy.h" 5 #include "sandbox/win/src/process_thread_policy.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/free_deleter.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "sandbox/win/src/ipc_tags.h" 13 #include "sandbox/win/src/ipc_tags.h"
13 #include "sandbox/win/src/nt_internals.h" 14 #include "sandbox/win/src/nt_internals.h"
14 #include "sandbox/win/src/policy_engine_opcodes.h" 15 #include "sandbox/win/src/policy_engine_opcodes.h"
15 #include "sandbox/win/src/policy_params.h" 16 #include "sandbox/win/src/policy_params.h"
16 #include "sandbox/win/src/sandbox_types.h" 17 #include "sandbox/win/src/sandbox_types.h"
17 #include "sandbox/win/src/win_utils.h" 18 #include "sandbox/win/src/win_utils.h"
18 19
19 namespace { 20 namespace {
20 21
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 255 }
255 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, 256 if (!::DuplicateHandle(::GetCurrentProcess(), local_handle,
256 client_info.process, handle, 0, FALSE, 257 client_info.process, handle, 0, FALSE,
257 DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS)) { 258 DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS)) {
258 return ERROR_ACCESS_DENIED; 259 return ERROR_ACCESS_DENIED;
259 } 260 }
260 return ERROR_SUCCESS; 261 return ERROR_SUCCESS;
261 } 262 }
262 263
263 } // namespace sandbox 264 } // namespace sandbox
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698