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

Unified Diff: chrome/browser/ui/cocoa/status_bubble_mac.mm

Issue 6134010: Revert 71167 - Remove wstring from gfx.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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: 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_));

Powered by Google App Engine
This is Rietveld 408576698