| 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 9d5402a39dc7028237068bdd7dfb642a194944f8..91b35e9e5b8be4be8b63ad240d5ed92b8cb89640 100644
|
| --- a/chrome/browser/first_run/upgrade_util_win.cc
|
| +++ b/chrome/browser/first_run/upgrade_util_win.cc
|
| @@ -93,8 +93,11 @@ bool RelaunchChromeBrowser(const base::CommandLine& command_line) {
|
| chrome_exe_command_line.SetProgram(
|
| chrome_exe.DirName().Append(installer::kChromeExe));
|
|
|
| - return base::LaunchProcess(chrome_exe_command_line, base::LaunchOptions())
|
| - .IsValid();
|
| + // Set the working directory to the exe's directory. This avoids a handle to
|
| + // the version directory being kept open in the relaunched child process.
|
| + base::LaunchOptions launch_options;
|
| + launch_options.current_directory = chrome_exe.DirName();
|
| + return base::LaunchProcess(chrome_exe_command_line, launch_options).IsValid();
|
| }
|
|
|
| bool IsUpdatePendingRestart() {
|
|
|