| Index: chrome/browser/chromeos/system/input_device_settings_impl_x11.cc
|
| diff --git a/chrome/browser/chromeos/system/input_device_settings_impl_x11.cc b/chrome/browser/chromeos/system/input_device_settings_impl_x11.cc
|
| index 0c10157b9c088a4ab674be9ba0d241593bd34076..a4c05e4918d3f11cfbe6595826f7500dfc638fbf 100644
|
| --- a/chrome/browser/chromeos/system/input_device_settings_impl_x11.cc
|
| +++ b/chrome/browser/chromeos/system/input_device_settings_impl_x11.cc
|
| @@ -55,9 +55,10 @@ void ExecuteScriptOnFileThread(const std::vector<std::string>& argv) {
|
| if (!ScriptExists(script))
|
| return;
|
|
|
| - base::ProcessHandle handle;
|
| - base::LaunchProcess(base::CommandLine(argv), base::LaunchOptions(), &handle);
|
| - base::EnsureProcessGetsReaped(handle);
|
| + base::Process process =
|
| + base::LaunchProcess(base::CommandLine(argv), base::LaunchOptions());
|
| + if (process.IsValid())
|
| + base::EnsureProcessGetsReaped(process.pid());
|
| }
|
|
|
| void ExecuteScript(const std::vector<std::string>& argv) {
|
|
|