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
3 // found in the LICENSE file.
5 #include "base/process/launch.h"
9 LaunchOptions::LaunchOptions()
13 handles_to_inherit(NULL
),
14 inherit_handles(false),
16 empty_desktop_name(false),
21 force_breakaway_from_job_(false)
25 maximize_rlimits(NULL
),
26 new_process_group(false)
29 , allow_new_privs(false)
31 #if defined(OS_CHROMEOS)
32 , ctrl_terminal_fd(-1)
34 #endif // !defined(OS_WIN)
38 LaunchOptions::~LaunchOptions() {
41 LaunchOptions
LaunchOptionsForTest() {
42 LaunchOptions options
;
44 // To prevent accidental privilege sharing to an untrusted child, processes
45 // are started with PR_SET_NO_NEW_PRIVS. Do not set that here, since this
46 // new child will be used for testing only.
47 options
.allow_new_privs
= true;