Index: ios/chrome/browser/ui/settings/block_popups_collection_view_controller.mm |
diff --git a/ios/chrome/browser/ui/settings/block_popups_collection_view_controller.mm b/ios/chrome/browser/ui/settings/block_popups_collection_view_controller.mm |
index 0967faa733d5acebfa12ba697abed23835981027..12baccec358000558214311d31b9d6e80a38fcde 100644 |
--- a/ios/chrome/browser/ui/settings/block_popups_collection_view_controller.mm |
+++ b/ios/chrome/browser/ui/settings/block_popups_collection_view_controller.mm |
@@ -9,6 +9,7 @@ |
#include "base/strings/sys_string_conversions.h" |
#include "base/values.h" |
#include "components/content_settings/core/browser/host_content_settings_map.h" |
+#include "components/content_settings/core/common/content_settings.h" |
#include "components/content_settings/core/common/content_settings_pattern.h" |
#include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
#include "ios/chrome/browser/content_settings/host_content_settings_map_factory.h" |
@@ -280,7 +281,7 @@ typedef NS_ENUM(NSInteger, ItemType) { |
// able to modify content settings with a secondary pattern other than the |
// wildcard pattern. So only show settings that the user is able to modify. |
if (entries[i].secondary_pattern == ContentSettingsPattern::Wildcard() && |
- entries[i].setting == CONTENT_SETTING_ALLOW) { |
+ entries[i].GetContentSetting() == CONTENT_SETTING_ALLOW) { |
_exceptions.AppendString(entries[i].primary_pattern.ToString()); |
} else { |
LOG(ERROR) << "Secondary content settings patterns are not " |