Index: chrome/browser/content_settings/host_content_settings_map_unittest.cc |
diff --git a/chrome/browser/content_settings/host_content_settings_map_unittest.cc b/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
index ec7cb9bbb89f51592fdf7183399311934fc268bd..9aaf801cd75c4113f7961b6a496880579371c6c7 100644 |
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
@@ -935,8 +935,13 @@ TEST_F(HostContentSettingsMapTest, ShouldAllowAllContent) { |
https_host, embedder, CONTENT_SETTINGS_TYPE_COOKIES)); |
EXPECT_TRUE(host_content_settings_map->ShouldAllowAllContent( |
embedder, http_host, CONTENT_SETTINGS_TYPE_COOKIES)); |
+#if defined(ENABLE_EXTENSIONS) |
EXPECT_TRUE(host_content_settings_map->ShouldAllowAllContent( |
extension, extension, CONTENT_SETTINGS_TYPE_COOKIES)); |
+#else |
+ EXPECT_FALSE(host_content_settings_map->ShouldAllowAllContent( |
+ extension, extension, CONTENT_SETTINGS_TYPE_COOKIES)); |
+#endif |
EXPECT_FALSE(host_content_settings_map->ShouldAllowAllContent( |
extension, extension, CONTENT_SETTINGS_TYPE_PLUGINS)); |
EXPECT_FALSE(host_content_settings_map->ShouldAllowAllContent( |