| Index: chrome/installer/util/google_update_util.cc
|
| diff --git a/chrome/installer/util/google_update_util.cc b/chrome/installer/util/google_update_util.cc
|
| index db07f844aa9a51c398115eab78930f541494d989..68e46754a892cd0b42022993d1a71883e6eaecfe 100644
|
| --- a/chrome/installer/util/google_update_util.cc
|
| +++ b/chrome/installer/util/google_update_util.cc
|
| @@ -89,13 +89,13 @@
|
| bool LaunchProcessAndWaitWithTimeout(const base::string16& cmd_string,
|
| base::TimeDelta timeout) {
|
| bool success = false;
|
| + base::win::ScopedHandle process;
|
| int exit_code = 0;
|
| VLOG(0) << "Launching: " << cmd_string;
|
| - base::Process process =
|
| - base::LaunchProcess(cmd_string, base::LaunchOptions());
|
| - if (!process.IsValid()) {
|
| + if (!base::LaunchProcess(cmd_string, base::LaunchOptions(),
|
| + &process)) {
|
| PLOG(ERROR) << "Failed to launch (" << cmd_string << ")";
|
| - } else if (!base::WaitForExitCodeWithTimeout(process.Handle(), &exit_code,
|
| + } else if (!base::WaitForExitCodeWithTimeout(process.Get(), &exit_code,
|
| timeout)) {
|
| // The GetExitCodeProcess failed or timed-out.
|
| LOG(ERROR) <<"Command (" << cmd_string << ") is taking more than "
|
|
|