Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: views/drag_utils.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug link Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/printed_document.cc ('k') | webkit/plugins/npapi/plugin_list_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « printing/printed_document.cc ('k') | webkit/plugins/npapi/plugin_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698