Index: chrome/service/cloud_print/cloud_print_proxy.cc |
diff --git a/chrome/service/cloud_print/cloud_print_proxy.cc b/chrome/service/cloud_print/cloud_print_proxy.cc |
old mode 100644 |
new mode 100755 |
index 6b4e2ce646732b79fbe140ad1f083cd4adc96cc0..808ffbf44c63b0e8cd5cb72732d682b03c49d3a8 |
--- a/chrome/service/cloud_print/cloud_print_proxy.cc |
+++ b/chrome/service/cloud_print/cloud_print_proxy.cc |
@@ -38,7 +38,13 @@ void LaunchBrowserProcessWithSwitch(const std::string& switch_string) { |
cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir); |
cmd_line.AppendSwitch(switch_string); |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+ base::ProcessHandle pid = 0; |
+ base::LaunchProcess(cmd_line, base::LaunchOptions(), &pid); |
+ base::EnsureProcessGetsReaped(pid); |
+#else |
base::LaunchProcess(cmd_line, base::LaunchOptions(), NULL); |
+#endif |
} |
// This method is invoked on the IO thread to launch the browser process to |