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

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: git try Created 7 years, 8 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 80317d1bde51d460b43e2e9429999fbb8b37725f..5abd93f000b36b6d2c8f7a91fcaee5aa2ac2e612 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 = base::MakeAbsoluteFilePath(path.AppendASCII("missingImage.png"));
bool success = file_util::ReadFileToString(path, &broken_image_data);
if (!success) {
LOG(FATAL) << "Failed reading: " << path.value();
@@ -239,8 +238,8 @@ 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 = base::MakeAbsoluteFilePath(
+ path.AppendASCII("textAreaResizeCorner.png"));
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