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

Side by Side Diff: base/process/launch.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « base/process/launch.h ('k') | base/process/launch_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6
7 namespace base { 7 namespace base {
8 8
9 LaunchOptions::LaunchOptions() 9 LaunchOptions::LaunchOptions()
10 : wait(false), 10 : wait(false),
11 #if defined(OS_WIN)
12 start_hidden(false),
13 handles_to_inherit(NULL),
14 inherit_handles(false),
15 as_user(NULL),
16 empty_desktop_name(false),
17 job_handle(NULL),
18 stdin_handle(NULL),
19 stdout_handle(NULL),
20 stderr_handle(NULL),
21 force_breakaway_from_job_(false)
22 #else
23 clear_environ(false), 11 clear_environ(false),
24 fds_to_remap(NULL), 12 fds_to_remap(NULL),
25 maximize_rlimits(NULL), 13 maximize_rlimits(NULL),
26 new_process_group(false) 14 new_process_group(false)
27 #if defined(OS_LINUX) 15 #if defined(OS_LINUX)
28 , clone_flags(0) 16 , clone_flags(0)
29 , allow_new_privs(false) 17 , allow_new_privs(false)
30 , kill_on_parent_death(false) 18 , kill_on_parent_death(false)
31 #endif // OS_LINUX 19 #endif // OS_LINUX
32 #if defined(OS_POSIX) 20 #if defined(OS_POSIX)
33 , pre_exec_delegate(NULL) 21 , pre_exec_delegate(NULL)
34 #endif // OS_POSIX 22 #endif // OS_POSIX
35 #if defined(OS_CHROMEOS) 23 #if defined(OS_CHROMEOS)
36 , ctrl_terminal_fd(-1) 24 , ctrl_terminal_fd(-1)
37 #endif // OS_CHROMEOS 25 #endif // OS_CHROMEOS
38 #endif // !defined(OS_WIN)
39 { 26 {
40 } 27 }
41 28
42 LaunchOptions::~LaunchOptions() { 29 LaunchOptions::~LaunchOptions() {
43 } 30 }
44 31
45 LaunchOptions LaunchOptionsForTest() { 32 LaunchOptions LaunchOptionsForTest() {
46 LaunchOptions options; 33 LaunchOptions options;
47 #if defined(OS_LINUX) 34 #if defined(OS_LINUX)
48 // To prevent accidental privilege sharing to an untrusted child, processes 35 // 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 36 // are started with PR_SET_NO_NEW_PRIVS. Do not set that here, since this
50 // new child will be used for testing only. 37 // new child will be used for testing only.
51 options.allow_new_privs = true; 38 options.allow_new_privs = true;
52 #endif 39 #endif
53 return options; 40 return options;
54 } 41 }
55 42
56 } // namespace base 43 } // namespace base
OLDNEW
« no previous file with comments | « base/process/launch.h ('k') | base/process/launch_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698