Index: views/drag_utils.cc |
diff --git a/views/drag_utils.cc b/views/drag_utils.cc |
index 23622ae54e4a2b2b0e6967a53bcfeff52bf5efdb..43fc3d4e805fc13877b18bda48bb6b074136761e 100644 |
--- a/views/drag_utils.cc |
+++ b/views/drag_utils.cc |
@@ -74,7 +74,7 @@ void CreateDragImageForFile(const FilePath& file_name, |
// Paint the icon. |
canvas.DrawBitmapInt(*icon, (width - icon->width()) / 2, 0); |
- std::wstring name = file_name.BaseName().ToWStringHack(); |
+ std::wstring name = UTF16ToWide(file_name.BaseName().LossyDisplayName()); |
#if defined(OS_WIN) |
// Paint the file name. We inset it one pixel to allow room for the halo. |
canvas.DrawStringWithHalo(name, font, kFileDragImageTextColor, SK_ColorWHITE, |