| Index: chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
|
| diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
|
| index 073b2745c1abb862a646df2db0bb523355272e3f..22976865c1f13535f2f71eb8f67fcd70c8f98974 100644
|
| --- a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
|
| +++ b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
|
| @@ -81,8 +81,8 @@ bool NativeProcessLauncher::LaunchNativeProcess(
|
| options.allow_new_privs = true;
|
| #endif
|
|
|
| - base::ProcessHandle process_handle;
|
| - if (!base::LaunchProcess(command_line, options, &process_handle)) {
|
| + base::Process local_process = base::LaunchProcess(command_line, options);
|
| + if (!local_process.IsValid()) {
|
| LOG(ERROR) << "Error launching process";
|
| return false;
|
| }
|
| @@ -91,7 +91,7 @@ bool NativeProcessLauncher::LaunchNativeProcess(
|
| write_pipe_read_fd.reset();
|
| read_pipe_write_fd.reset();
|
|
|
| - *process = base::Process(process_handle);
|
| + *process = local_process.Pass();
|
| *read_file = base::File(read_pipe_read_fd.release());
|
| *write_file = base::File(write_pipe_write_fd.release());
|
|
|
|
|