Index: views/drag_utils.cc |
diff --git a/views/drag_utils.cc b/views/drag_utils.cc |
index 07e935935d671d3cfefa7f8162bbf451612f76f6..aff790ad8300d526a03160aa7c93470d66d8b1be 100644 |
--- a/views/drag_utils.cc |
+++ b/views/drag_utils.cc |
@@ -81,7 +81,7 @@ void CreateDragImageForFile(const FilePath::StringType& file_name, |
width - 2, font.height(), |
gfx::Canvas::TEXT_ALIGN_CENTER); |
#else |
- std::wstring name = file_util::GetFilenameFromPath(UTF8ToWide(file_name)); |
+ std::wstring name = FilePath(file_name).BaseName().ToWStringHack(); |
canvas.DrawStringInt(name, font, kFileDragImageTextColor, |
0, icon->height() + kLinkDragImageVPadding, |
width, font.height(), gfx::Canvas::TEXT_ALIGN_CENTER); |