Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1785)

Unified Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 1412523003: Adding <keygen> Content Setting (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert extra change. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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",

Powered by Google App Engine
This is Rietveld 408576698