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

Unified Diff: base/process/launch_posix.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/launch.h ('k') | base/process/launch_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/launch_posix.cc
diff --git a/base/process/launch_posix.cc b/base/process/launch_posix.cc
index bc6294b2dad1b22e5c026aaa352ead68c2494916..3322d265785246e8076e8ddd9591701f57db7f5c 100644
--- a/base/process/launch_posix.cc
+++ b/base/process/launch_posix.cc
@@ -480,6 +480,15 @@ bool LaunchProcess(const CommandLine& cmdline,
return LaunchProcess(cmdline.argv(), options, process_handle);
}
+Process LaunchProcess(const CommandLine& cmdline,
+ const LaunchOptions& options) {
+ ProcessHandle process_handle;
+ if (LaunchProcess(cmdline, options, &process_handle))
+ return Process(process_handle);
+
+ return Process();
+}
+
void RaiseProcessToHighPriority() {
// On POSIX, we don't actually do anything here. We could try to nice() or
// setpriority() or sched_getscheduler, but these all require extra rights.
« 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