Chromium Code Reviews| Index: base/process/launch.h |
| diff --git a/base/process/launch.h b/base/process/launch.h |
| index ac2df5eee5f751c3c718190a62db078dbc826835..bf58bde304d767baa6cc87d85fe6877fc158769b 100644 |
| --- a/base/process/launch.h |
| +++ b/base/process/launch.h |
| @@ -148,6 +148,16 @@ BASE_EXPORT bool LaunchProcess(const string16& cmdline, |
| const LaunchOptions& options, |
| ProcessHandle* process_handle); |
| +// Launches a process with elevated privileges. This does not behave exactly |
| +// like LaunchProcess as it uses ShellExecuteEx instead of CreateProcess to |
| +// create the process. This means the process will have elevated privileges |
| +// and thus some common operations like OpenProcess will fail. The process will |
| +// be available through the |process_handle| argument. Currently the only |
| +// option that is supported from LaunchOptions are |start_hidden| and |wait|. |
| +BASE_EXPORT bool LaunchElevatedProcess(const CommandLine& cmdline, |
|
mef
2014/02/05 16:28:15
nit: Currently only supported LaunchOptions are |s
Drew Haven
2014/02/05 20:13:22
Done.
|
| + const LaunchOptions& options, |
| + ProcessHandle* process_handle); |
| + |
| #elif defined(OS_POSIX) |
| // A POSIX-specific version of LaunchProcess that takes an argv array |
| // instead of a CommandLine. Useful for situations where you need to |
| @@ -214,7 +224,6 @@ BASE_EXPORT void RaiseProcessToHighPriority(); |
| // See http://crbug.com/20371/ for more details. |
| void RestoreDefaultExceptionHandler(); |
| #endif // defined(OS_MACOSX) |
| - |
|
Robert Sesek
2014/02/05 17:11:50
nit: please restore/diff noise
Drew Haven
2014/02/05 20:13:22
Done.
|
| } // namespace base |
| #endif // BASE_PROCESS_LAUNCH_H_ |