summaryrefslogtreecommitdiffstats
path: root/printing/printed_document.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-27 21:47:48 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-27 21:47:48 +0000
commit25de8d0c1874566511d42d4e46276507bb88ce16 (patch)
treefda12f19796cd23765a87f4e1402e3758aa9ce9c /printing/printed_document.cc
parentd1e7881403dd7f9fa28292beb38f0d6e01a7e3c0 (diff)
downloadchromium_src-25de8d0c1874566511d42d4e46276507bb88ce16.zip
chromium_src-25de8d0c1874566511d42d4e46276507bb88ce16.tar.gz
chromium_src-25de8d0c1874566511d42d4e46276507bb88ce16.tar.bz2
Convert ElideUrl to return a string16 instead of a wstring.
BUG=23581 Review URL: http://codereview.chromium.org/4115003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.cc')
-rw-r--r--printing/printed_document.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 04d8d3d..75d4b95 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -232,7 +232,8 @@ void PrintedDocument::PrintHeaderFooter(gfx::NativeDrawingContext context,
if (string_size.width() > bounding.width()) {
if (line == PageOverlays::kUrl) {
- output = gfx::ElideUrl(url(), font, bounding.width(), std::wstring());
+ output = UTF16ToWideHack(gfx::ElideUrl(url(), font, bounding.width(),
+ std::wstring()));
} else {
output = UTF16ToWideHack(gfx::ElideText(WideToUTF16Hack(output),
font, bounding.width(), false));