Skip to content

Commit

Permalink
Adblock setting should also set ads
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Sep 29, 2018
1 parent 28e1ef0 commit cea3513
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions browser/ui/webui/settings/default_brave_shields_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cea3513

Please sign in to comment.