Index: chrome/browser/first_run/upgrade_util_win.cc |
diff --git a/chrome/browser/first_run/upgrade_util_win.cc b/chrome/browser/first_run/upgrade_util_win.cc |
index ff19c0479d7af3528e03c702e7762c9e35861e9a..1a489a859bf74ee4d73754bab48c80a5bf544caf 100644 |
--- a/chrome/browser/first_run/upgrade_util_win.cc |
+++ b/chrome/browser/first_run/upgrade_util_win.cc |
@@ -258,13 +258,13 @@ bool SwapNewChromeExeIfPresent() { |
std::wstring rename_cmd; |
if (key.ReadValue(google_update::kRegRenameCmdField, |
&rename_cmd) == ERROR_SUCCESS) { |
- base::win::ScopedHandle handle; |
base::LaunchOptions options; |
options.wait = true; |
options.start_hidden = true; |
- if (base::LaunchProcess(rename_cmd, options, &handle)) { |
+ base::Process process = base::LaunchProcess(rename_cmd, options); |
+ if (process.IsValid()) { |
DWORD exit_code; |
- ::GetExitCodeProcess(handle.Get(), &exit_code); |
+ ::GetExitCodeProcess(process.Handle(), &exit_code); |
if (exit_code == installer::RENAME_SUCCESSFUL) |
return true; |
} |