Index: base/process/kill_win.cc |
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc |
index 4d7225f46c1985a15ecf0f73808ba8f1fd189f4b..f280c6fa1d8e05351f0d988e990055390a203f29 100644 |
--- a/base/process/kill_win.cc |
+++ b/base/process/kill_win.cc |
@@ -182,10 +182,9 @@ TerminationStatus GetTerminationStatus(ProcessHandle handle, int* exit_code) { |
} |
bool WaitForExitCode(ProcessHandle handle, int* exit_code) { |
- bool success = WaitForExitCodeWithTimeout( |
- handle, exit_code, base::TimeDelta::FromMilliseconds(INFINITE)); |
- CloseProcessHandle(handle); |
- return success; |
+ // TODO(rvargas) crbug.com/417532: Remove this function. |
+ Process process(handle); |
+ return process.WaitForExit(exit_code); |
} |
bool WaitForExitCodeWithTimeout(ProcessHandle handle, |