Index: webkit/support/platform_support_mac.mm |
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm |
index 2681cb4c3150ddef40ac1752c253e1a5347e16b4..ff5480ce581bfd936c2bd9f2f7ccbfa76a659878 100644 |
--- a/webkit/support/platform_support_mac.mm |
+++ b/webkit/support/platform_support_mac.mm |
@@ -225,8 +225,7 @@ base::StringPiece TestWebKitPlatformSupport::GetDataResource( |
// In order to match WebKit's colors for the missing image, we have to |
// use a PNG. The GIF doesn't have the color range needed to correctly |
// match the TIFF they use in Safari. |
- path = path.AppendASCII("missingImage.png"); |
- file_util::AbsolutePath(&path); |
+ path = path.AppendASCII("missingImage.png").AsAbsolute(); |
bool success = file_util::ReadFileToString(path, &broken_image_data); |
if (!success) { |
LOG(FATAL) << "Failed reading: " << path.value(); |
@@ -239,8 +238,7 @@ base::StringPiece TestWebKitPlatformSupport::GetDataResource( |
CR_DEFINE_STATIC_LOCAL(std::string, resize_corner_data, ()); |
if (resize_corner_data.empty()) { |
base::FilePath path = GetResourcesFilePath(); |
- path = path.AppendASCII("textAreaResizeCorner.png"); |
- file_util::AbsolutePath(&path); |
+ path = path.AppendASCII("textAreaResizeCorner.png").AsAbsolute(); |
bool success = file_util::ReadFileToString(path, &resize_corner_data); |
if (!success) { |
LOG(FATAL) << "Failed reading: " << path.value(); |