diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 20:55:30 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 20:55:30 +0000 |
commit | adda869f22b29e7c43c2d84efdda2919854ed608 (patch) | |
tree | 9798ebe411388bacbd50a5798504f04ace15902b /net | |
parent | 81f5486a2aa70e059a76b6e0851bb55b2e3daf53 (diff) | |
download | chromium_src-adda869f22b29e7c43c2d84efdda2919854ed608.zip chromium_src-adda869f22b29e7c43c2d84efdda2919854ed608.tar.gz chromium_src-adda869f22b29e7c43c2d84efdda2919854ed608.tar.bz2 |
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
Diffstat (limited to 'net')
-rw-r--r-- | net/disk_cache/stress_cache.cc | 6 | ||||
-rw-r--r-- | net/tools/crash_cache/crash_cache.cc | 6 | ||||
-rw-r--r-- | net/tools/dump_cache/dump_cache.cc | 2 |
3 files changed, 9 insertions, 5 deletions
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); |