summaryrefslogtreecommitdiff
path: root/base/process/launch_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/process/launch_posix.cc')
-rw-r--r--base/process/launch_posix.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/process/launch_posix.cc b/base/process/launch_posix.cc
index 19effa2ce5..1c4df40665 100644
--- a/base/process/launch_posix.cc
+++ b/base/process/launch_posix.cc
@@ -668,6 +668,14 @@ bool GetAppOutputAndError(const CommandLine& cl, std::string* output) {
return result && exit_code == EXIT_SUCCESS;
}
+bool GetAppOutputAndError(const std::vector<std::string>& argv,
+ std::string* output) {
+ int exit_code;
+ bool result =
+ GetAppOutputInternal(argv, nullptr, true, output, true, &exit_code);
+ return result && exit_code == EXIT_SUCCESS;
+}
+
bool GetAppOutputWithExitCode(const CommandLine& cl,
std::string* output,
int* exit_code) {