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

Unified Diff: ui/base/text/text_elider.cc

Issue 7811006: Add full support for filesystem URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better content_settings_pattern.cc changes. Created 9 years 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
Index: ui/base/text/text_elider.cc
diff --git a/ui/base/text/text_elider.cc b/ui/base/text/text_elider.cc
index dd39e480b45763dbfa5804c2fb87d259bc6d3126..f6aec3e5291dfdfbf4690c0024722ae0e8d49487 100644
--- a/ui/base/text/text_elider.cc
+++ b/ui/base/text/text_elider.cc
@@ -163,8 +163,8 @@ string16 ElideUrl(const GURL& url,
if (available_pixel_width <= 0)
return url_string;
- // If non-standard or not file type, return plain eliding.
- if (!(url.SchemeIsFile() || url.IsStandard()))
+ // If non-standard, return plain eliding.
+ if (!url.IsStandard())
return ElideText(url_string, font, available_pixel_width, ui::ELIDE_AT_END);
// Now start eliding url_string to fit within available pixel width.

Powered by Google App Engine
This is Rietveld 408576698