Index: chrome/common/extensions/extension.cc |
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc |
index c9777e0e6221230ad7d8915799e35a9e6ee5a516..fb96f92ec5837d61823648829ee6be9bfe31c801 100644 |
--- a/chrome/common/extensions/extension.cc |
+++ b/chrome/common/extensions/extension.cc |
@@ -1244,8 +1244,7 @@ void Extension::DecodeIconFromPath(const FilePath& icon_path, |
std::string file_contents; |
if (!file_util::ReadFileToString(icon_path, &file_contents)) { |
- LOG(ERROR) << "Could not read icon file: " |
- << WideToUTF8(icon_path.ToWStringHack()); |
+ LOG(ERROR) << "Could not read icon file: " << icon_path.LossyDisplayName(); |
return; |
} |
@@ -1257,7 +1256,7 @@ void Extension::DecodeIconFromPath(const FilePath& icon_path, |
*decoded = decoder.Decode(data, file_contents.length()); |
if (decoded->empty()) { |
LOG(ERROR) << "Could not decode icon file: " |
- << WideToUTF8(icon_path.ToWStringHack()); |
+ << icon_path.LossyDisplayName(); |
return; |
} |