Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: net/tools/dump_cache/dump_cache.cc

Issue 330024: Make the command line syntax a little easier.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dump_cache/dump_cache.cc
===================================================================
--- net/tools/dump_cache/dump_cache.cc (revision 30060)
+++ net/tools/dump_cache/dump_cache.cc (working copy)
@@ -75,7 +75,7 @@
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 @@
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698