Index: chrome/browser/printing/printing_layout_uitest.cc |
diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc |
index 4f8ede16f16ed9217917b1016bfc4ed3c2a427dc..a3917c5d55844c9878d6a5ea06fcf63b2059d0ca 100644 |
--- a/chrome/browser/printing/printing_layout_uitest.cc |
+++ b/chrome/browser/printing/printing_layout_uitest.cc |
@@ -59,7 +59,7 @@ class PrintingLayoutTest : public PrintingTest<UITest> { |
return 100.; |
} |
- std::wstring verification_file(test_data_directory_.ToWStringHack()); |
+ std::wstring verification_file(test_data_directory_.value()); |
file_util::AppendToPath(&verification_file, L"printing"); |
file_util::AppendToPath(&verification_file, verification_name); |
FilePath emf(verification_file + L".emf"); |
@@ -143,22 +143,22 @@ class PrintingLayoutTest : public PrintingTest<UITest> { |
prn_file.clear(); |
found_emf = false; |
found_prn = false; |
- std::wstring file; |
- while (!(file = enumerator.Next().ToWStringHack()).empty()) { |
- std::wstring ext = FilePath(file).Extension(); |
+ FilePath file; |
+ while (!(file = enumerator.Next()).empty()) { |
+ std::wstring ext = file.Extension(); |
if (base::strcasecmp(WideToUTF8(ext).c_str(), ".emf") == 0) { |
EXPECT_FALSE(found_emf) << "Found a leftover .EMF file: \"" << |
- emf_file << "\" and \"" << file << "\" when looking for \"" << |
- verification_name << "\""; |
+ emf_file << "\" and \"" << file.value() << |
+ "\" when looking for \"" << verification_name << "\""; |
found_emf = true; |
- emf_file = file; |
+ emf_file = file.value(); |
continue; |
} |
if (base::strcasecmp(WideToUTF8(ext).c_str(), ".prn") == 0) { |
EXPECT_FALSE(found_prn) << "Found a leftover .PRN file: \"" << |
- prn_file << "\" and \"" << file << "\" when looking for \"" << |
- verification_name << "\""; |
- prn_file = file; |
+ prn_file << "\" and \"" << file.value() << |
+ "\" when looking for \"" << verification_name << "\""; |
+ prn_file = file.value(); |
found_prn = true; |
file_util::Delete(file, false); |
continue; |