summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/controls/label.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/label.cc b/views/controls/label.cc
index dcff7c8..9421444 100644
--- a/views/controls/label.cc
+++ b/views/controls/label.cc
@@ -423,7 +423,8 @@ void Label::CalculateDrawStringParams(std::wstring* paint_text,
if (url_set_) {
// TODO(jungshik) : Figure out how to get 'intl.accept_languages'
// preference and use it when calling ElideUrl.
- *paint_text = gfx::ElideUrl(url_, font_, width(), std::wstring());
+ *paint_text = UTF16ToWideHack(gfx::ElideUrl(url_, font_, width(),
+ std::wstring()));
// An URLs is always treated as an LTR text and therefore we should
// explicitly mark it as such if the locale is RTL so that URLs containing