From 0436fcd542e8ce436fe9395a64cc03fa369276b1 Mon Sep 17 00:00:00 2001
From: "evan@chromium.org"
 <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Fri, 30 Jul 2010 22:35:33 +0000
Subject: Remove deprecated CommandLine API.

Cleaned up the final few callers, punting the remaining harder ones
to TODOs.

Review URL: http://codereview.chromium.org/3043033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54400 0039d316-1c4b-4281-b951-d872f2087c98
---
 net/tools/dump_cache/dump_cache.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'net')

diff --git a/net/tools/dump_cache/dump_cache.cc b/net/tools/dump_cache/dump_cache.cc
index 29caefda..a8a477f 100644
--- a/net/tools/dump_cache/dump_cache.cc
+++ b/net/tools/dump_cache/dump_cache.cc
@@ -95,7 +95,8 @@ int LaunchSlave(const CommandLine& command_line,
   if (do_upgrade || do_convert_to_text)
     new_command_line.AppendSwitch(kSlave);
 
-  new_command_line.AppendSwitchWithValue(kPipe, pipe_number);
+  // 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)) {
     printf("Unable to launch the needed version of this tool: %ls\n",
            new_program.c_str());
-- 
cgit v1.1