| Index: chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
|
| diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
|
| index 31fbdc80ba7569cab4d027a874ab00a9b184cc92..fd7345c918039473495b44aa4565c404b0f2aa96 100644
|
| --- a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
|
| +++ b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
|
| @@ -136,7 +136,7 @@
|
|
|
| base::LaunchOptions options;
|
| options.start_hidden = true;
|
| - base::win::ScopedHandle cmd_handle;
|
| + base::ProcessHandle cmd_handle;
|
| if (!base::LaunchProcess(command.c_str(), options, &cmd_handle)) {
|
| LOG(ERROR) << "Error launching process "
|
| << command_line.GetProgram().MaybeAsASCII();
|
| @@ -148,13 +148,14 @@
|
| bool stdin_connected = ConnectNamedPipe(stdin_pipe.Get(), NULL) ?
|
| TRUE : GetLastError() == ERROR_PIPE_CONNECTED;
|
| if (!stdout_connected || !stdin_connected) {
|
| - base::KillProcess(cmd_handle.Get(), 0, false);
|
| + base::KillProcess(cmd_handle, 0, false);
|
| + base::CloseProcessHandle(cmd_handle);
|
| LOG(ERROR) << "Failed to connect IO pipes when starting "
|
| << command_line.GetProgram().MaybeAsASCII();
|
| return false;
|
| }
|
|
|
| - *process_handle = cmd_handle.Take();
|
| + *process_handle = cmd_handle;
|
| *read_file = stdout_pipe.Take();
|
| *write_file = stdin_pipe.Take();
|
|
|
|
|