diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 00:26:08 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 00:26:08 +0000 |
commit | 60dc10e5964ae12dee458c899632dbfc6987b3ee (patch) | |
tree | 233e39fb3083d3db3db8fc78ffc31a3d076ef1e4 /net/tools | |
parent | 9629b4d20cdd4182ac24c4250ba7e40c9f430387 (diff) | |
download | chromium_src-60dc10e5964ae12dee458c899632dbfc6987b3ee.zip chromium_src-60dc10e5964ae12dee458c899632dbfc6987b3ee.tar.gz chromium_src-60dc10e5964ae12dee458c899632dbfc6987b3ee.tar.bz2 |
Make the command line syntax a little easier.
It would work with:
dump_cache.exe foo bar baz
But it would fail with:
dump_cache foo bar baz
The latter caused an odd crash which was all too difficult to
find!
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/330024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r-- | net/tools/dump_cache/dump_cache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tools/dump_cache/dump_cache.cc b/net/tools/dump_cache/dump_cache.cc index 8e6084e..29caefda 100644 --- a/net/tools/dump_cache/dump_cache.cc +++ b/net/tools/dump_cache/dump_cache.cc @@ -75,7 +75,7 @@ int LaunchSlave(const CommandLine& command_line, const std::wstring& pipe_number, int version) { // TODO(port): remove this string-munging hackery. std::wstring hacked_command_line = command_line.command_line_string(); - const std::wstring old_exe(L"dump_cache.exe"); + const std::wstring old_exe(L"dump_cache"); size_t to_remove = hacked_command_line.find(old_exe); hacked_command_line.erase(to_remove, old_exe.size()); @@ -84,9 +84,9 @@ int LaunchSlave(const CommandLine& command_line, std::wstring new_program; if (do_upgrade) - new_program = StringPrintf(L"%ls%d.exe", L"dump_cache_", version); + new_program = StringPrintf(L"%ls%d", L"dump_cache_", version); else - new_program = StringPrintf(L"dump_cache.exe"); + new_program = StringPrintf(L"dump_cache"); hacked_command_line.insert(to_remove, new_program); |