diff options
Diffstat (limited to 'chrome/common/platform_util_linux.cc')
-rw-r--r-- | chrome/common/platform_util_linux.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/platform_util_linux.cc b/chrome/common/platform_util_linux.cc index 988de92..b13033c 100644 --- a/chrome/common/platform_util_linux.cc +++ b/chrome/common/platform_util_linux.cc @@ -6,10 +6,10 @@ #include <gtk/gtk.h> -#include "base/file_path.h" #include "base/file_util.h" #include "base/process_util.h" #include "base/string_util.h" +#include "chrome/common/process_watcher.h" namespace { @@ -18,7 +18,9 @@ void XDGOpen(const FilePath& path) { argv.push_back("xdg-open"); argv.push_back(path.value()); base::file_handle_mapping_vector no_files; - base::LaunchApp(argv, no_files, false, NULL); + base::ProcessHandle handle; + if (base::LaunchApp(argv, no_files, false, &handle)) + ProcessWatcher::EnsureProcessGetsReaped(handle); } } // namespace |