From adda869f22b29e7c43c2d84efdda2919854ed608 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 14 Jul 2011 20:55:30 +0000 Subject: Clean up users of a deprecated base::LaunchApp API. BUG=88990 Review URL: http://codereview.chromium.org/7351003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92598 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/stress_cache.cc | 6 ++++-- net/tools/crash_cache/crash_cache.cc | 6 ++++-- net/tools/dump_cache/dump_cache.cc | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'net') diff --git a/net/disk_cache/stress_cache.cc b/net/disk_cache/stress_cache.cc index ee2db24..f9c8b62 100644 --- a/net/disk_cache/stress_cache.cc +++ b/net/disk_cache/stress_cache.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 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. @@ -59,7 +59,9 @@ int RunSlave(int iteration) { cmdline.AppendArg(base::IntToString(iteration)); base::ProcessHandle handle; - if (!base::LaunchApp(cmdline, false, false, &handle)) { + base::LaunchOptions options; + options.process_handle = &handle; + if (!base::LaunchProcess(cmdline, options)) { printf("Unable to run test\n"); return kError; } diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc index 72628d0..637daae 100644 --- a/net/tools/crash_cache/crash_cache.cc +++ b/net/tools/crash_cache/crash_cache.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 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. @@ -49,7 +49,9 @@ int RunSlave(RankCrashes action) { cmdline.AppendArg(base::IntToString(action)); base::ProcessHandle handle; - if (!base::LaunchApp(cmdline, false, false, &handle)) { + base::LaunchOptions options; + options.process_handle = &handle; + if (!base::LaunchProcess(cmdline, options)) { printf("Unable to run test %d\n", action); return GENERIC; } diff --git a/net/tools/dump_cache/dump_cache.cc b/net/tools/dump_cache/dump_cache.cc index 53dd121..4a63d00 100644 --- a/net/tools/dump_cache/dump_cache.cc +++ b/net/tools/dump_cache/dump_cache.cc @@ -97,7 +97,7 @@ int LaunchSlave(const CommandLine& command_line, // TODO(evanm): remove needless usage of wstring from here and elsewhere. new_command_line.AppendSwitchASCII(kPipe, WideToASCII(pipe_number)); - if (!base::LaunchApp(new_command_line, false, false, NULL)) { + if (!base::LaunchProcess(new_command_line, base::LaunchOptions())) { printf("Unable to launch the needed version of this tool: %ls\n", new_program.c_str()); printf(kUpgradeHelp); -- cgit v1.1