summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/options/fonts_page_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/options/fonts_page_gtk.cc')
-rw-r--r--chrome/browser/gtk/options/fonts_page_gtk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/gtk/options/fonts_page_gtk.cc b/chrome/browser/gtk/options/fonts_page_gtk.cc
index a3c2d4e..cbe39c3 100644
--- a/chrome/browser/gtk/options/fonts_page_gtk.cc
+++ b/chrome/browser/gtk/options/fonts_page_gtk.cc
@@ -24,14 +24,14 @@ std::string MakeFontName(std::string family_name, int pixel_size) {
// The given font might not be available (the default fonts we use are not
// installed by default on some distros). So figure out which font we are
// actually falling back to and display that. (See crbug.com/31381.)
- std::wstring actual_family_name = gfx::Font(
- UTF8ToWide(family_name), pixel_size).GetFontName();
+ string16 actual_family_name = gfx::Font(
+ UTF8ToUTF16(family_name), pixel_size).GetFontName();
std::string fontname;
// TODO(mattm): We can pass in the size in pixels (px), and the font button
// actually honors it, but when you open the selector it interprets it as
// points. See crbug.com/17857
base::SStringPrintf(&fontname, "%s, %dpx",
- WideToUTF8(actual_family_name).c_str(), pixel_size);
+ UTF16ToUTF8(actual_family_name).c_str(), pixel_size);
return fontname;
}