summaryrefslogtreecommitdiffstats
path: root/webkit/support/platform_support_mac.mm
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-03 05:00:10 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-03 05:00:10 +0000
commitcdfa6da6a635e56c0818ae973317af59c3280c59 (patch)
treec9053f64ad19a51774b3a5556246fc82c134d0d0 /webkit/support/platform_support_mac.mm
parent6540f83c68927d090d06ee099b6e5af921618343 (diff)
downloadchromium_src-cdfa6da6a635e56c0818ae973317af59c3280c59.zip
chromium_src-cdfa6da6a635e56c0818ae973317af59c3280c59.tar.gz
chromium_src-cdfa6da6a635e56c0818ae973317af59c3280c59.tar.bz2
Add resources to Linux DRT so things like the broken image
icon appear. Review URL: http://codereview.chromium.org/2548001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/platform_support_mac.mm')
-rw-r--r--webkit/support/platform_support_mac.mm6
1 files changed, 2 insertions, 4 deletions
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm
index e84dcd2..305adbf 100644
--- a/webkit/support/platform_support_mac.mm
+++ b/webkit/support/platform_support_mac.mm
@@ -182,8 +182,7 @@ base::StringPiece GetDataResource(int resource_id) {
// 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");
- bool success = file_util::ReadFileToString(path.ToWStringHack(),
- &broken_image_data);
+ bool success = file_util::ReadFileToString(path, &broken_image_data);
if (!success) {
LOG(FATAL) << "Failed reading: " << path.value();
}
@@ -196,8 +195,7 @@ base::StringPiece GetDataResource(int resource_id) {
if (resize_corner_data.empty()) {
FilePath path = GetResourcesFilePath();
path = path.AppendASCII("textAreaResizeCorner.png");
- bool success = file_util::ReadFileToString(path.ToWStringHack(),
- &resize_corner_data);
+ bool success = file_util::ReadFileToString(path, &resize_corner_data);
if (!success) {
LOG(FATAL) << "Failed reading: " << path.value();
}