summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options/content_settings_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/options/content_settings_handler.cc')
-rw-r--r--chrome/browser/ui/webui/options/content_settings_handler.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
index 935897c..325974c 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -777,12 +777,6 @@ void ContentSettingsHandler::OnContentSettingChanged(
} else {
if (ContainsKey(GetExceptionsInfoMap(), details.type()))
UpdateExceptionsViewFromModel(details.type());
- for (const ChooserTypeNameEntry& chooser_type : kChooserTypeGroupNames) {
- if (chooser_type.type == details.type()) {
- UpdateChooserExceptionsViewFromModel(chooser_type);
- break;
- }
- }
}
}
@@ -1512,6 +1506,7 @@ void ContentSettingsHandler::RemoveChooserException(
ChooserContextBase* chooser_context = chooser_type->get_context(profile);
chooser_context->RevokeObjectPermission(requesting_origin, embedding_origin,
*object);
+ UpdateChooserExceptionsViewFromModel(*chooser_type);
// TODO(reillyg): Create metrics for revocations. crbug.com/556845
}