21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
diff --git a/chrome/browser/ui/webui/settings/site_settings_helper.cc b/chrome/browser/ui/webui/settings/site_settings_helper.cc
|
|
index 57a5deb77ffa6ab7dc77faaa235f18c2250b9d7f..b7286720a49d384ce225a0ad3b989bf183398eef 100644
|
|
--- a/chrome/browser/ui/webui/settings/site_settings_helper.cc
|
|
+++ b/chrome/browser/ui/webui/settings/site_settings_helper.cc
|
|
@@ -170,6 +170,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = {
|
|
{ContentSettingsType::AUTO_DARK_WEB_CONTENT, nullptr},
|
|
{ContentSettingsType::REQUEST_DESKTOP_SITE, nullptr},
|
|
{ContentSettingsType::GET_DISPLAY_MEDIA_SET_SELECT_ALL_SCREENS, nullptr},
|
|
+ BRAVE_CONTENT_SETTINGS_TYPE_GROUP_NAMES_LIST
|
|
};
|
|
|
|
static_assert(std::size(kContentSettingsTypeGroupNames) ==
|
|
@@ -394,6 +395,7 @@ bool HasRegisteredGroupName(ContentSettingsType type) {
|
|
}
|
|
|
|
ContentSettingsType ContentSettingsTypeFromGroupName(base::StringPiece name) {
|
|
+ BRAVE_SITE_SETTINGS_HELPER_CONTENT_SETTINGS_TYPE_FROM_GROUP_NAME
|
|
for (size_t i = 0; i < std::size(kContentSettingsTypeGroupNames); ++i) {
|
|
if (name == kContentSettingsTypeGroupNames[i].name)
|
|
return kContentSettingsTypeGroupNames[i].type;
|