diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-06 15:34:20 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-06 15:34:20 +0000 |
commit | f82d361654e9b96dbd9f94b63842d65b95814fed (patch) | |
tree | 5792ee6ec523449a9db6289a0431285b6522ce3a /base/process_util.h | |
parent | b7bc78efbf94b55cfb20264a90af5e1ea7a317d2 (diff) | |
download | chromium_src-f82d361654e9b96dbd9f94b63842d65b95814fed.zip chromium_src-f82d361654e9b96dbd9f94b63842d65b95814fed.tar.gz chromium_src-f82d361654e9b96dbd9f94b63842d65b95814fed.tar.bz2 |
Write the outcome of the Toast Experiment for system-level installs to the right registry key.
BUG=44378
TEST=None
Review URL: http://codereview.chromium.org/3308003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/base/process_util.h b/base/process_util.h index dae3d46..4699c9e2 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -174,6 +174,13 @@ bool GetProcessIntegrityLevel(ProcessHandle process, IntegrityLevel *level); bool LaunchApp(const std::wstring& cmdline, bool wait, bool start_hidden, ProcessHandle* process_handle); +// Same as LaunchApp, except allows the new process to inherit handles of the +// parent process. +bool LaunchAppWithHandleInheritance(const std::wstring& cmdline, + bool wait, + bool start_hidden, + ProcessHandle* process_handle); + // Runs the given application name with the given command line as if the user // represented by |token| had launched it. The caveats about |cmdline| and // |process_handle| explained for LaunchApp above apply as well. @@ -188,10 +195,11 @@ bool LaunchAppAsUser(UserTokenHandle token, const std::wstring& cmdline, bool start_hidden, ProcessHandle* process_handle); // Has the same behavior as LaunchAppAsUser, but offers the boolean option to -// use an empty string for the desktop name. +// use an empty string for the desktop name and a boolean for allowing the +// child process to inherit handles from its parent. bool LaunchAppAsUser(UserTokenHandle token, const std::wstring& cmdline, bool start_hidden, ProcessHandle* process_handle, - bool empty_desktop_name); + bool empty_desktop_name, bool inherit_handles); #elif defined(OS_POSIX) |