OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/process/launch.h" | 5 #include "base/process/launch.h" |
| 6 #include "build/build_config.h" |
6 | 7 |
7 namespace base { | 8 namespace base { |
8 | 9 |
9 LaunchOptions::LaunchOptions() | 10 LaunchOptions::LaunchOptions() |
10 : wait(false), | 11 : wait(false), |
11 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
12 start_hidden(false), | 13 start_hidden(false), |
13 handles_to_inherit(NULL), | 14 handles_to_inherit(NULL), |
14 inherit_handles(false), | 15 inherit_handles(false), |
15 as_user(NULL), | 16 as_user(NULL), |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #if defined(OS_LINUX) | 48 #if defined(OS_LINUX) |
48 // To prevent accidental privilege sharing to an untrusted child, processes | 49 // To prevent accidental privilege sharing to an untrusted child, processes |
49 // are started with PR_SET_NO_NEW_PRIVS. Do not set that here, since this | 50 // are started with PR_SET_NO_NEW_PRIVS. Do not set that here, since this |
50 // new child will be used for testing only. | 51 // new child will be used for testing only. |
51 options.allow_new_privs = true; | 52 options.allow_new_privs = true; |
52 #endif | 53 #endif |
53 return options; | 54 return options; |
54 } | 55 } |
55 | 56 |
56 } // namespace base | 57 } // namespace base |
OLD | NEW |