Index: chrome/browser/gtk/options/fonts_page_gtk.cc |
=================================================================== |
--- chrome/browser/gtk/options/fonts_page_gtk.cc (revision 55911) |
+++ chrome/browser/gtk/options/fonts_page_gtk.cc (working copy) |
@@ -22,8 +22,8 @@ |
// 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::CreateFont( |
- UTF8ToWide(family_name), pixel_size).FontName(); |
+ std::wstring actual_family_name = gfx::Font( |
+ UTF8ToWide(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 |