diff options
Diffstat (limited to 'views/drag_utils.cc')
-rw-r--r-- | views/drag_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/drag_utils.cc b/views/drag_utils.cc index 07e9359..aff790a 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); |