Move launching in a job object logic
from TestServer to LaunchProcess,
so that I can re-use it in other places
for experiments.
BUG=none
Review URL: http://codereview.chromium.org/7789018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100027 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/process_util.h b/base/process_util.h
index 34e9e91..574332f8 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -213,7 +213,7 @@
LaunchOptions() : wait(false),
#if defined(OS_WIN)
start_hidden(false), inherit_handles(false), as_user(NULL),
- empty_desktop_name(false)
+ empty_desktop_name(false), job_handle(NULL)
#else
environ(NULL), fds_to_remap(NULL), new_process_group(false)
#if defined(OS_LINUX)
@@ -245,6 +245,9 @@
// If true, use an empty string for the desktop name.
bool empty_desktop_name;
+
+ // If non-NULL, launches the application in that job object.
+ HANDLE job_handle;
#else
// If non-NULL, set/unset environment variables.
// See documentation of AlterEnvironment().