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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.cc

Issue 1417023007: Replace HostContentSettingsMap::AddExceptionForURL with SetNarrowestWebsiteSetting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: chrome/browser/ui/content_settings/content_setting_bubble_model.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
index 76351bd18260d8b26f21e23fefa360ad9285ec6b..343aa88944495280ced116dc31e8719d8f9c908b 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
@@ -416,11 +416,10 @@ void ContentSettingSingleRadioGroup::SetRadioGroup() {
void ContentSettingSingleRadioGroup::AddException(ContentSetting setting) {
msw 2015/11/09 18:41:56 nit: rename AddException to match SetNarrowestCont
raymes 2015/11/09 23:29:02 Done.
if (profile()) {
- HostContentSettingsMapFactory::GetForProfile(profile())->AddExceptionForURL(
- bubble_content().radio_group.url,
- bubble_content().radio_group.url,
- content_type(),
- setting);
+ HostContentSettingsMapFactory::GetForProfile(profile())
+ ->SetNarrowestContentSetting(bubble_content().radio_group.url,
+ bubble_content().radio_group.url,
+ content_type(), setting);
}
}

Powered by Google App Engine
This is Rietveld 408576698