summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 23:09:16 +0000
committerericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 23:09:16 +0000
commitc9755fbf878f4ae2e772168303cd9c4e2a940223 (patch)
treed4a1a18f637874ea449e820072fc9b832a8194a9 /ui
parent2898f6296698bbd600f0e06a4a34e0dd8fb35ae2 (diff)
downloadchromium_src-c9755fbf878f4ae2e772168303cd9c4e2a940223.zip
chromium_src-c9755fbf878f4ae2e772168303cd9c4e2a940223.tar.gz
chromium_src-c9755fbf878f4ae2e772168303cd9c4e2a940223.tar.bz2
Add full support for filesystem URLs.
BUG=114484 TEST=existing filesystem tests don't break Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128753 Review URL: https://chromiumcodereview.appspot.com/7811006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/base/text/text_elider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/base/text/text_elider.cc b/ui/base/text/text_elider.cc
index 62ad7d0..bfd7f90 100644
--- a/ui/base/text/text_elider.cc
+++ b/ui/base/text/text_elider.cc
@@ -225,8 +225,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, ELIDE_AT_END);
// Now start eliding url_string to fit within available pixel width.