diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 20:34:02 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 20:34:02 +0000 |
commit | 399b870529860ccbf7e2743291edc3aaeb089ca3 (patch) | |
tree | 4f64211f2f1d69dc5979906cbe8bde08f898caf1 /net/tools | |
parent | 982e781d80d395cd9749de92d2efd6a309168cd3 (diff) | |
download | chromium_src-399b870529860ccbf7e2743291edc3aaeb089ca3.zip chromium_src-399b870529860ccbf7e2743291edc3aaeb089ca3.tar.gz chromium_src-399b870529860ccbf7e2743291edc3aaeb089ca3.tar.bz2 |
Deprecate wstring version of PathService::Get() in net.
Review URL: http://codereview.chromium.org/100240
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r-- | net/tools/crash_cache/crash_cache.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc index 34cff08..5272e17 100644 --- a/net/tools/crash_cache/crash_cache.cc +++ b/net/tools/crash_cache/crash_cache.cc @@ -37,10 +37,10 @@ using disk_cache::RankCrashes; // Starts a new process, to generate the files. int RunSlave(RankCrashes action) { - std::wstring exe; + FilePath exe; PathService::Get(base::FILE_EXE, &exe); - CommandLine cmdline(exe); + CommandLine cmdline(exe.ToWStringHack()); cmdline.AppendLooseValue(ASCIIToWide(IntToString(action))); base::ProcessHandle handle; @@ -300,12 +300,12 @@ int main(int argc, const char* argv[]) { return INVALID_ARGUMENT; } - std::wstring path; + FilePath path; PathService::Get(base::DIR_SOURCE_ROOT, &path); - file_util::AppendToPath(&path, L"net"); - file_util::AppendToPath(&path, L"data"); - file_util::AppendToPath(&path, L"cache_tests"); - file_util::AppendToPath(&path, L"new_crashes"); + path = path.AppendASCII("net"); + path = path.AppendASCII("data"); + path = path.AppendASCII("cache_tests"); + path = path.AppendASCII("new_crashes"); - return SlaveCode(path, action); + return SlaveCode(path.ToWStringHack(), action); } |