Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: chrome/browser/content_setting_bubble_model.cc

Issue 2868059: Preparatory work for adding content exceptions from the tab cookie view. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/cookies_tree_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | chrome/browser/cookies_tree_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698