diff --git a/browser/ui/webui/settings/default_brave_shields_handler.cc b/browser/ui/webui/settings/default_brave_shields_handler.cc index f9de423bf595..bdd7bf8c11b6 100644 --- a/browser/ui/webui/settings/default_brave_shields_handler.cc +++ b/browser/ui/webui/settings/default_brave_shields_handler.cc @@ -79,6 +79,13 @@ void DefaultBraveShieldsHandler::SetAdControlType(const base::ListValue* args) { CONTENT_SETTINGS_TYPE_PLUGINS, brave_shields::kAds, value == "allow" ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK); + HostContentSettingsMapFactory::GetForProfile(profile_)-> + SetContentSettingCustomScope( + ContentSettingsPattern::Wildcard(), + ContentSettingsPattern::Wildcard(), + CONTENT_SETTINGS_TYPE_PLUGINS, + brave_shields::kTrackers, + value == "allow" ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK); } void DefaultBraveShieldsHandler::GetCookieControlType(const base::ListValue* args) {