summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 00:26:56 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 00:26:56 +0000
commite5ce23e294561b52d35b72eb30c8f5ae869e0fe2 (patch)
tree713df1188ca3590a032e8357c2b048dce73dd326 /net
parentf5a49f47ee2fcf48b3b420e3bc94eec893be92f2 (diff)
downloadchromium_src-e5ce23e294561b52d35b72eb30c8f5ae869e0fe2.zip
chromium_src-e5ce23e294561b52d35b72eb30c8f5ae869e0fe2.tar.gz
chromium_src-e5ce23e294561b52d35b72eb30c8f5ae869e0fe2.tar.bz2
Use FilePath::BaseName instead of the deprecated file_util::GetFilenameFromPath. Part 4.
BUG=24672 TEST=trybots Review URL: http://codereview.chromium.org/6097002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/tools/dump_cache/dump_files.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc
index 7a2585f..2f37c5d 100644
--- a/net/tools/dump_cache/dump_files.cc
+++ b/net/tools/dump_cache/dump_files.cc
@@ -80,7 +80,7 @@ void DumpBlockHeader(const std::wstring& name) {
if (!ReadHeader(name, reinterpret_cast<char*>(&header), sizeof(header)))
return;
- std::wstring file_name = file_util::GetFilenameFromPath(name);
+ std::wstring file_name = FilePath(name).BaseName().value();
printf("Block file: %ls\n", file_name.c_str());
printf("magic: %x\n", header.magic);