Index: chrome/browser/ui/cocoa/download/download_item_controller.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/download/download_item_controller.mm (revision 69274) |
+++ chrome/browser/ui/cocoa/download/download_item_controller.mm (working copy) |
@@ -191,14 +191,15 @@ |
// Elide giant extensions. |
if (extension.length() > kFileNameMaxLength / 2) { |
std::wstring wide_extension; |
- ElideString(UTF8ToWide(extension), kFileNameMaxLength / 2, |
- &wide_extension); |
+ gfx::ElideString(UTF8ToWide(extension), kFileNameMaxLength / 2, |
+ &wide_extension); |
extension = WideToUTF8(wide_extension); |
} |
// Rebuild the filename.extension. |
std::wstring rootname = UTF8ToWide(filename.RemoveExtension().value()); |
- ElideString(rootname, kFileNameMaxLength - extension.length(), &rootname); |
+ gfx::ElideString(rootname, kFileNameMaxLength - extension.length(), |
+ &rootname); |
std::string new_filename = WideToUTF8(rootname); |
if (extension.length()) |
new_filename += std::string(".") + extension; |