summaryrefslogtreecommitdiffstats
path: root/chrome/test/plugin/pdf_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/plugin/pdf_browsertest.cc')
-rw-r--r--chrome/test/plugin/pdf_browsertest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/test/plugin/pdf_browsertest.cc b/chrome/test/plugin/pdf_browsertest.cc
index a42f528..e56625f 100644
--- a/chrome/test/plugin/pdf_browsertest.cc
+++ b/chrome/test/plugin/pdf_browsertest.cc
@@ -271,7 +271,8 @@ IN_PROC_BROWSER_TEST_F(PDFBrowserTest, FLAKY_SLOW_Loading) {
for (FilePath file_path = file_enumerator.Next();
!file_path.empty();
file_path = file_enumerator.Next()) {
- std::string filename = WideToASCII(file_path.BaseName().ToWStringHack());
+ std::string filename = file_path.BaseName().MaybeAsASCII();
+ ASSERT_FALSE(filename.empty());
#if defined(OS_MACOSX) || defined(OS_LINUX)
if (filename == "sample.pdf")