| Index: chrome/browser/content_setting_bubble_model.cc
|
| diff --git a/chrome/browser/content_setting_bubble_model.cc b/chrome/browser/content_setting_bubble_model.cc
|
| index 6fc78e186fcdfa874c73e61a68e52c51374c6bcd..6d8b9026b95db6bf3521bf7d30e351e56d2560b0 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);
|
| }
|
|
|