Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1358)

Unified Diff: webkit/support/platform_support_mac.mm

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698