Index: chrome/browser/content_settings/host_content_settings_map.cc |
diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc |
index 008821826cc7129a32dffd384612ffc4703a3796..fe42c5966679ae099528c8ab3519a83f0e17a1d9 100644 |
--- a/chrome/browser/content_settings/host_content_settings_map.cc |
+++ b/chrome/browser/content_settings/host_content_settings_map.cc |
@@ -323,9 +323,14 @@ bool HostContentSettingsMap::IsValueAllowedForType( |
bool HostContentSettingsMap::IsSettingAllowedForType( |
ContentSetting setting, ContentSettingsType content_type) { |
// Intents content settings are hidden behind a switch for now. |
- if (content_type == CONTENT_SETTINGS_TYPE_INTENTS && |
- !web_intents::IsWebIntentsEnabled()) |
+ if (content_type == CONTENT_SETTINGS_TYPE_INTENTS) { |
+#if defined(ENABLE_WEB_INTENTS) |
+ if (!web_intents::IsWebIntentsEnabled()) |
+ return false; |
+#else |
return false; |
+#endif |
+ } |
// BLOCK semantics are not implemented for fullscreen. |
if (content_type == CONTENT_SETTINGS_TYPE_FULLSCREEN && |