summaryrefslogtreecommitdiffstats
path: root/content/browser/child_process_launcher.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 18:09:46 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 18:09:46 +0000
commit1e41c3804e42d0a00481821165bf25657a06b9f0 (patch)
tree7df9fa50eeb9523578b161dcd5b8991e85aa0610 /content/browser/child_process_launcher.cc
parent2bdd3a6802f0483b9f1f9bdc9ae82138b03afe63 (diff)
downloadchromium_src-1e41c3804e42d0a00481821165bf25657a06b9f0.zip
chromium_src-1e41c3804e42d0a00481821165bf25657a06b9f0.tar.gz
chromium_src-1e41c3804e42d0a00481821165bf25657a06b9f0.tar.bz2
Clean up users of a deprecated base::LaunchApp API.
BUG=88990 Review URL: http://codereview.chromium.org/7258005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/child_process_launcher.cc')
-rw-r--r--content/browser/child_process_launcher.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 8d0ac12..4b49369 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -157,7 +157,7 @@ class ChildProcessLauncher::Context
#if defined(OS_MACOSX)
// It is possible for the child process to die immediately after
// launching. To prevent leaking MachBroker map entries in this case,
- // lock around all of LaunchApp(). If the child dies, the death
+ // lock around all of LaunchProcess(). If the child dies, the death
// notification will be processed by the MachBroker after the call to
// AddPlaceholderForPid(), enabling proper cleanup.
{ // begin scope for AutoLock
@@ -166,12 +166,17 @@ class ChildProcessLauncher::Context
// This call to |PrepareForFork()| will start the MachBroker listener
// thread, if it is not already running. Therefore the browser process
- // will be listening for Mach IPC before LaunchApp() is called.
+ // will be listening for Mach IPC before LaunchProcess() is called.
broker->PrepareForFork();
#endif
+
// Actually launch the app.
- launched = base::LaunchApp(cmd_line->argv(), env, fds_to_map,
- /* wait= */false, &handle);
+ base::LaunchOptions options;
+ options.environ = &env;
+ options.fds_to_remap = &fds_to_map;
+ options.process_handle = &handle;
+ launched = base::LaunchProcess(*cmd_line, options);
+
#if defined(OS_MACOSX)
if (launched)
broker->AddPlaceholderForPid(handle);