Upgrade the windows specific version of LaunchProcess to avoid raw handles.
commit6b687a5e232c80539772dc3dbe35b98095064c38
authorrvargas <rvargas@chromium.org>
Wed, 3 Dec 2014 22:24:06 +0000 (3 14:24 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Dec 2014 22:24:46 +0000 (3 22:24 +0000)
tree152e59d10d89943e7ec0363b8f686b483c9d31be
parente77e1c6d3ecf6398fdbd32fd262e6d6d5e00c4bd
Upgrade the windows specific version of LaunchProcess to avoid raw handles.

This change implies that extensions::LaunchNativeProcess also changes to
return base::Process, and that requires base::EnsureProcessTerminated to
deal with base:Process (as it basically claims ownership of the process).

This CL fixes some leaks all around.

BUG=417532

Review URL: https://codereview.chromium.org/759903002

Cr-Commit-Position: refs/heads/master@{#306687}
26 files changed:
base/process/kill.h
base/process/kill_mac.cc
base/process/kill_posix.cc
base/process/kill_win.cc
base/process/launch.h
base/process/launch_win.cc
base/process/process_util_unittest.cc
chrome/browser/extensions/api/messaging/native_message_process_host.cc
chrome/browser/extensions/api/messaging/native_message_process_host.h
chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
chrome/browser/extensions/api/messaging/native_process_launcher.cc
chrome/browser/extensions/api/messaging/native_process_launcher.h
chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
chrome/browser/first_run/upgrade_util_win.cc
chrome/browser/ui/views/uninstall_view.cc
chrome/installer/gcapi/gcapi.cc
chrome/installer/test/alternate_version_generator.cc
chrome/installer/util/google_update_util.cc
chrome/installer/util/install_util.cc
cloud_print/virtual_driver/win/install/setup.cc
components/storage_monitor/storage_monitor_linux.cc
content/browser/child_process_launcher.cc
content/zygote/zygote_linux.cc
remoting/host/setup/daemon_installer_win.cc
win8/test/metro_registration_helper.cc