summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/helper.cc')
-rw-r--r--chrome/installer/util/helper.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/chrome/installer/util/helper.cc b/chrome/installer/util/helper.cc
index 68fa646..3d86c8d 100644
--- a/chrome/installer/util/helper.cc
+++ b/chrome/installer/util/helper.cc
@@ -44,9 +44,7 @@ bool installer::LaunchChrome(bool system_install) {
bool installer::LaunchChromeAndWaitForResult(bool system_install,
const std::wstring& options,
- int32 timeout_ms,
- int32* exit_code,
- bool* is_timeout) {
+ int32* exit_code) {
std::wstring chrome_exe(installer::GetChromeInstallPath(system_install));
if (chrome_exe.empty())
return false;
@@ -63,16 +61,9 @@ bool installer::LaunchChromeAndWaitForResult(bool system_install,
return false;
}
- DWORD wr = ::WaitForSingleObject(pi.hProcess, timeout_ms);
- if (WAIT_TIMEOUT == wr) {
- if (is_timeout)
- *is_timeout = true;
- } else { // WAIT_OBJECT_0
- if (is_timeout)
- *is_timeout = false;
- if (exit_code) {
- ::GetExitCodeProcess(pi.hProcess, reinterpret_cast<DWORD*>(exit_code));
- }
+ DWORD wr = ::WaitForSingleObject(pi.hProcess, INFINITE);
+ if (exit_code) {
+ ::GetExitCodeProcess(pi.hProcess, reinterpret_cast<DWORD*>(exit_code));
}
::CloseHandle(pi.hProcess);