diff options
Diffstat (limited to 'chrome/browser/content_setting_bubble_model.cc')
-rw-r--r-- | chrome/browser/content_setting_bubble_model.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/browser/content_setting_bubble_model.cc b/chrome/browser/content_setting_bubble_model.cc index 6fc78e1..6d8b902 100644 --- a/chrome/browser/content_setting_bubble_model.cc +++ b/chrome/browser/content_setting_bubble_model.cc @@ -166,16 +166,8 @@ class ContentSettingSingleRadioGroup : public ContentSettingTitleAndLinkModel { } virtual void OnRadioClicked(int radio_index) { - // Make sure there is no entry that would override the pattern we are about - // to insert for exactly this URL. - profile()->GetHostContentSettingsMap()->SetContentSetting( - HostContentSettingsMap::Pattern::FromURLNoWildcard( - bubble_content().radio_group.url), - content_type(), - CONTENT_SETTING_DEFAULT); - profile()->GetHostContentSettingsMap()->SetContentSetting( - HostContentSettingsMap::Pattern::FromURL( - bubble_content().radio_group.url), + profile()->GetHostContentSettingsMap()->AddExceptionForURL( + bubble_content().radio_group.url, content_type(), radio_index == 0 ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK); } |