Index: chrome/browser/ui/cocoa/status_bubble_mac.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/status_bubble_mac.mm (revision 71168) |
+++ chrome/browser/ui/cocoa/status_bubble_mac.mm (working copy) |
@@ -148,7 +148,7 @@ |
scaled_width = [[parent_ contentView] convertSize:scaled_width fromView:nil]; |
text_width = static_cast<int>(scaled_width.width); |
NSFont* font = [[window_ contentView] font]; |
- gfx::Font font_chr(base::SysNSStringToUTF16([font fontName]), |
+ gfx::Font font_chr(base::SysNSStringToWide([font fontName]), |
[font pointSize]); |
string16 original_url_text = net::FormatUrl(url, UTF16ToUTF8(languages)); |
@@ -606,7 +606,7 @@ |
// Generate the URL string that fits in the expanded bubble. |
NSFont* font = [[window_ contentView] font]; |
- gfx::Font font_chr(base::SysNSStringToUTF16([font fontName]), |
+ gfx::Font font_chr(base::SysNSStringToWide([font fontName]), |
[font pointSize]); |
string16 expanded_url = gfx::ElideUrl(url_, font_chr, |
max_bubble_width, UTF16ToWideHack(languages_)); |