From e5ce23e294561b52d35b72eb30c8f5ae869e0fe2 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 6 Jan 2011 00:26:56 +0000 Subject: 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 --- net/tools/dump_cache/dump_files.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') 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(&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); -- cgit v1.1