Index: chrome/installer/setup/setup_util.cc |
diff --git a/chrome/installer/setup/setup_util.cc b/chrome/installer/setup/setup_util.cc |
index 3e0a3d9dc61c0daa830a70c90f561ebb4978105b..f121fbf73756d159080fee8ac4b0d18eef9a66cc 100644 |
--- a/chrome/installer/setup/setup_util.cc |
+++ b/chrome/installer/setup/setup_util.cc |
@@ -70,13 +70,13 @@ bool LaunchAndWaitForExistingInstall(const base::FilePath& setup_exe, |
// Launch the process and wait for it to exit. |
VLOG(1) << "Launching existing installer with command: " |
<< new_cl.GetCommandLineString(); |
- base::ProcessHandle handle = INVALID_HANDLE_VALUE; |
- if (!base::LaunchProcess(new_cl, base::LaunchOptions(), &handle)) { |
+ base::Process process = base::LaunchProcess(new_cl, base::LaunchOptions()); |
+ if (!process.IsValid()) { |
PLOG(ERROR) << "Failed to launch existing installer with command: " |
<< new_cl.GetCommandLineString(); |
return false; |
} |
- if (!base::WaitForExitCode(handle, exit_code)) { |
+ if (!process.WaitForExit(exit_code)) { |
PLOG(DFATAL) << "Failed to get exit code from existing installer"; |
*exit_code = WAIT_FOR_EXISTING_FAILED; |
} else { |