Index: chrome/browser/platform_util_linux.cc |
diff --git a/chrome/browser/platform_util_linux.cc b/chrome/browser/platform_util_linux.cc |
index b795cf9ca158cf7cd723356ef8b0f13dc277981e..eb1dbc97c26f52bcaa3e148990b4534bb00272e8 100644 |
--- a/chrome/browser/platform_util_linux.cc |
+++ b/chrome/browser/platform_util_linux.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -37,7 +37,10 @@ void XDGUtil(const std::string& util, const std::string& arg) { |
base::file_handle_mapping_vector no_files; |
base::ProcessHandle handle; |
- if (base::LaunchApp(argv, env, no_files, false, &handle)) |
+ base::LaunchOptions options; |
+ options.process_handle = &handle; |
+ options.environ = &env; |
+ if (base::LaunchProcess(argv, options)) |
ProcessWatcher::EnsureProcessGetsReaped(handle); |
} |