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

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: Removing page action. 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..740663f5ef8bfd5cacfb20526425acd8d9ab1a9e 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -157,6 +157,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = {
#if defined(OS_CHROMEOS)
{CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER, "protectedContent"},
#endif
+ {CONTENT_SETTINGS_TYPE_KEYGEN, "keygen"},
};
ChooserContextBase* GetUsbChooserContext(Profile* profile) {
@@ -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(
@@ -621,6 +626,11 @@ void ContentSettingsHandler::GetLocalizedValues(
{"usbDevicesManage", IDS_USB_DEVICES_MANAGE_BUTTON},
{"zoomlevelsHeader", IDS_ZOOMLEVELS_HEADER_AND_TAB_LABEL},
{"zoomLevelsManage", IDS_ZOOMLEVELS_MANAGE_BUTTON},
+ // Keygen filter.
+ {"keygenTabLabel", IDS_KEYGEN_TAB_LABEL},
+ {"keygenHeader", IDS_KEYGEN_HEADER},
+ {"keygenAllow", IDS_KEYGEN_ALLOW_RADIO},
+ {"keygenBlock", IDS_KEYGEN_DONOTALLOW_RADIO},
};
RegisterStrings(localized_strings, resources, arraysize(resources));
@@ -677,6 +687,7 @@ void ContentSettingsHandler::GetLocalizedValues(
IDS_USB_DEVICES_HEADER_AND_TAB_LABEL);
RegisterTitle(localized_strings, "zoomlevels",
IDS_ZOOMLEVELS_HEADER_AND_TAB_LABEL);
+ RegisterTitle(localized_strings, "keygen", IDS_KEYGEN_TAB_LABEL);
localized_strings->SetString("exceptionsLearnMoreUrl",
kExceptionsLearnMoreUrl);

Powered by Google App Engine
This is Rietveld 408576698