summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/stress_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/stress_cache.cc')
-rw-r--r--net/disk_cache/stress_cache.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/net/disk_cache/stress_cache.cc b/net/disk_cache/stress_cache.cc
index 03fb4c1..8ad94e2 100644
--- a/net/disk_cache/stress_cache.cc
+++ b/net/disk_cache/stress_cache.cc
@@ -36,14 +36,8 @@ int RunSlave(int iteration) {
std::wstring exe;
PathService::Get(base::FILE_EXE, &exe);
-#if defined(OS_WIN)
- CommandLine cmdline(StringPrintf(L"%ls %d", exe.c_str(), iteration));
-#elif defined(OS_POSIX)
- std::vector<std::string> cmd_argv;
- cmd_argv.push_back(WideToUTF8(exe));
- cmd_argv.push_back(IntToString(iteration));
- CommandLine cmdline(cmd_argv);
-#endif
+ CommandLine cmdline(exe);
+ cmdline.AppendLooseValue(ASCIIToWide(IntToString(iteration)));
base::ProcessHandle handle;
if (!base::LaunchApp(cmdline, false, false, &handle)) {