| Index: base/process/process_win.cc
|
| diff --git a/base/process/process_win.cc b/base/process/process_win.cc
|
| index 3e0d79fa8d39dc769f79eb241efaafeee397bb0c..96556a9b1ee2f1a6b5202d628d89c96950d0029d 100644
|
| --- a/base/process/process_win.cc
|
| +++ b/base/process/process_win.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/process/kill.h"
|
| #include "base/win/windows_version.h"
|
|
|
| namespace base {
|
| @@ -110,6 +111,18 @@ void Process::Terminate(int result_code) {
|
| terminate_process(Handle(), result_code);
|
| }
|
|
|
| +bool Process::WaitForExit(int* exit_code) {
|
| + return WaitForExitWithTimeout(TimeDelta::FromMilliseconds(INFINITE),
|
| + exit_code);
|
| +}
|
| +
|
| +bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) {
|
| + // TODO(rvargas) crbug.com/417532: Move the implementation here.
|
| + if (timeout > TimeDelta::FromMilliseconds(INFINITE))
|
| + timeout = TimeDelta::FromMilliseconds(INFINITE);
|
| + return base::WaitForExitCodeWithTimeout(Handle(), exit_code, timeout);
|
| +}
|
| +
|
| bool Process::IsProcessBackgrounded() const {
|
| DCHECK(IsValid());
|
| DWORD priority = GetPriority();
|
|
|