diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-01 23:19:02 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-01 23:19:02 +0000 |
commit | 8d19c7d3c2cced64a6e1dd22bc893cd5fe25eb2f (patch) | |
tree | 0a6a1df23fc78afc64a8b8c4382792a2f7c7a06d /views | |
parent | 5d48cfa886921a239ef130f9e0204c324510f3c9 (diff) | |
download | chromium_src-8d19c7d3c2cced64a6e1dd22bc893cd5fe25eb2f.zip chromium_src-8d19c7d3c2cced64a6e1dd22bc893cd5fe25eb2f.tar.gz chromium_src-8d19c7d3c2cced64a6e1dd22bc893cd5fe25eb2f.tar.bz2 |
Deprecate more old filepath functions.
These still exist on Windows due to being used by the installer,
but by moving them into the Windows-only block we prevent them
from being used in new code.
BUG=24672
Review URL: http://codereview.chromium.org/2861042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-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); |