Index: chrome/browser/ui/webui/options/content_settings_handler.cc |
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc |
index 47c0e4f8d05936ca6d859f45dcd278927394ae8a..e40834cfcddd2a738f5cd92008c5c81e02e45b51 100644 |
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc |
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc |
@@ -139,6 +139,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = { |
{CONTENT_SETTINGS_TYPE_COOKIES, "cookies"}, |
{CONTENT_SETTINGS_TYPE_IMAGES, "images"}, |
{CONTENT_SETTINGS_TYPE_JAVASCRIPT, "javascript"}, |
+ {CONTENT_SETTINGS_TYPE_KEYGEN, "keygen"}, |
{CONTENT_SETTINGS_TYPE_PLUGINS, "plugins"}, |
{CONTENT_SETTINGS_TYPE_POPUPS, "popups"}, |
{CONTENT_SETTINGS_TYPE_GEOLOCATION, "location"}, |
@@ -230,6 +231,10 @@ const ExceptionsInfoMap& GetExceptionsInfoMap() { |
UserMetricsAction( |
"Options_DefaultProtectedMediaIdentifierSettingChanged")))); |
#endif |
+ exceptions_info_map.insert(std::make_pair( |
+ CONTENT_SETTINGS_TYPE_KEYGEN, |
+ ContentSettingWithExceptions( |
+ true, UserMetricsAction("Options_DefaultKeygenSettingChanged")))); |
// Without OTR exceptions. |
exceptions_info_map.insert(std::make_pair( |
@@ -532,6 +537,11 @@ void ContentSettingsHandler::GetLocalizedValues( |
{"javascriptHeader", IDS_JAVASCRIPT_HEADER}, |
{"javascriptAllow", IDS_JS_ALLOW_RADIO}, |
{"javascriptBlock", IDS_JS_DONOTALLOW_RADIO}, |
+ // Keygen filter. |
+ {"keygenTabLabel", IDS_KEYGEN_TAB_LABEL}, |
+ {"keygenHeader", IDS_KEYGEN_HEADER}, |
+ {"keygenAllow", IDS_KEYGEN_ALLOW_RADIO}, |
+ {"keygenBlock", IDS_KEYGEN_DONOTALLOW_RADIO}, |
// Plugins filter. |
{"pluginsTabLabel", IDS_PLUGIN_TAB_LABEL}, |
{"pluginsHeader", IDS_PLUGIN_HEADER}, |
@@ -647,6 +657,7 @@ void ContentSettingsHandler::GetLocalizedValues( |
IDS_IMAGES_TAB_LABEL); |
RegisterTitle(localized_strings, "javascript", |
IDS_JAVASCRIPT_TAB_LABEL); |
+ RegisterTitle(localized_strings, "keygen", IDS_KEYGEN_TAB_LABEL); |
RegisterTitle(localized_strings, "plugins", |
IDS_PLUGIN_TAB_LABEL); |
RegisterTitle(localized_strings, "popups", |