Chromium Code Reviews| Index: chrome/browser/ui/webui/options/font_settings_utils_mac.mm |
| =================================================================== |
| --- chrome/browser/ui/webui/options/font_settings_utils_mac.mm (revision 85766) |
| +++ chrome/browser/ui/webui/options/font_settings_utils_mac.mm (working copy) |
| @@ -30,24 +30,6 @@ |
| } |
| } |
| -ListValue* FontSettingsUtilities::GetFontsList() { |
| - base::mac::ScopedNSAutoreleasePool autorelease_pool; |
| - ListValue* font_list = new ListValue; |
| - NSFontManager* fontManager = [[[NSFontManager alloc] init] autorelease]; |
| - NSArray* fonts = [fontManager availableFontFamilies]; |
| - for (NSString* family_name in fonts) { |
| - NSString* localized_family_name = |
| - [fontManager localizedNameForFamily:family_name face:nil]; |
| - ListValue* font_item = new ListValue(); |
| - string16 family = base::SysNSStringToUTF16(family_name); |
| - font_item->Append(Value::CreateStringValue(family)); |
| - string16 loc_family = base::SysNSStringToUTF16(localized_family_name); |
| - font_item->Append(Value::CreateStringValue(loc_family)); |
| - font_list->Append(font_item); |
| - } |
| - return font_list; |
| -} |
| - |
| void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) { |
|
viettrungluu
2011/05/18 20:21:18
Ditto about "// static"?
|
| ValidateFontFamily(prefs, prefs::kWebKitSerifFontFamily); |
| ValidateFontFamily(prefs, prefs::kWebKitSansSerifFontFamily); |