Chromium Code Reviews| Index: chrome/browser/ui/webui/options/font_settings_utils_gtk.cc |
| =================================================================== |
| --- chrome/browser/ui/webui/options/font_settings_utils_gtk.cc (revision 85766) |
| +++ chrome/browser/ui/webui/options/font_settings_utils_gtk.cc (working copy) |
| @@ -4,40 +4,6 @@ |
| #include "chrome/browser/ui/webui/options/font_settings_utils.h" |
| -#include <set> |
| -#include <string> |
| - |
| -#include <pango/pango.h> |
| -#include <pango/pangocairo.h> |
| - |
| -#include "base/values.h" |
| - |
| -ListValue* FontSettingsUtilities::GetFontsList() { |
| - ListValue* font_list = new ListValue; |
| - |
| - PangoFontMap* font_map = ::pango_cairo_font_map_get_default(); |
| - PangoFontFamily** families = NULL; |
| - int num_families = 0; |
| - ::pango_font_map_list_families(font_map, &families, &num_families); |
| - |
| - std::set<std::string> sorted_families; |
| - for (int i = 0; i < num_families; i++) { |
| - sorted_families.insert(::pango_font_family_get_name(families[i])); |
| - } |
| - g_free(families); |
| - |
| - for (std::set<std::string>::const_iterator iter = sorted_families.begin(); |
| - iter != sorted_families.end(); ++iter) { |
| - ListValue* font_item = new ListValue(); |
| - font_item->Append(Value::CreateStringValue(*iter)); |
| - font_item->Append(Value::CreateStringValue(*iter)); // localized name. |
| - // TODO(yusukes): Support localized family names. |
| - font_list->Append(font_item); |
| - } |
| - |
| - return font_list; |
| -} |
| - |
| void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) { |
|
viettrungluu
2011/05/18 20:21:18
nit: isn't this missing a "// static" comment?
|
| - // nothing to do for GTK. |
| + // Nothing to do for GTK. |
| } |