Index: chrome/browser/extensions/api/font_settings/font_settings_api.cc |
diff --git a/chrome/browser/extensions/api/font_settings/font_settings_api.cc b/chrome/browser/extensions/api/font_settings/font_settings_api.cc |
index 1d3420a82767c8d272d09974cb53cb0bbbfbcd81..0348527bcfdc729db74cc6f28aee6b1402ee5a8a 100644 |
--- a/chrome/browser/extensions/api/font_settings/font_settings_api.cc |
+++ b/chrome/browser/extensions/api/font_settings/font_settings_api.cc |
@@ -278,7 +278,7 @@ ExtensionFunction::ResponseAction FontSettingsSetFontFunction::Run() { |
PreferenceAPI::Get(profile)->SetExtensionControlledPref( |
extension_id(), pref_path, kExtensionPrefsScopeRegular, |
- new base::StringValue(params->details.font_id)); |
+ new base::Value(params->details.font_id)); |
return RespondNow(NoArguments()); |
} |
@@ -319,8 +319,8 @@ bool FontSettingsGetFontListFunction::CopyFontsToResult( |
std::unique_ptr<base::DictionaryValue> font_name( |
new base::DictionaryValue()); |
- font_name->Set(kFontIdKey, new base::StringValue(name)); |
- font_name->Set(kDisplayNameKey, new base::StringValue(localized_name)); |
+ font_name->Set(kFontIdKey, new base::Value(name)); |
+ font_name->Set(kDisplayNameKey, new base::Value(localized_name)); |
result->Append(std::move(font_name)); |
} |