Index: ui/base/text/text_elider.cc |
=================================================================== |
--- ui/base/text/text_elider.cc (revision 128756) |
+++ ui/base/text/text_elider.cc (working copy) |
@@ -225,8 +225,8 @@ |
if (available_pixel_width <= 0) |
return url_string; |
- // If non-standard, return plain eliding. |
- if (!url.IsStandard()) |
+ // If non-standard or not file type, return plain eliding. |
+ if (!(url.SchemeIsFile() || url.IsStandard())) |
return ElideText(url_string, font, available_pixel_width, ELIDE_AT_END); |
// Now start eliding url_string to fit within available pixel width. |