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 4563cbb1d43ed26d4d245036bf866946a6904dd8..549063805b8e79858637b5437d657b5b5bac5489 100644 |
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc |
@@ -617,10 +617,10 @@ TEST_F(HostContentSettingsMapTest, OffTheRecord) { |
TestingProfile profile; |
HostContentSettingsMap* host_content_settings_map = |
profile.GetHostContentSettingsMap(); |
- profile.set_incognito(true); |
scoped_refptr<HostContentSettingsMap> otr_map( |
- new HostContentSettingsMap(&profile)); |
- profile.set_incognito(false); |
+ new HostContentSettingsMap(profile.GetPrefs(), |
+ profile.GetExtensionService(), |
+ true)); |
GURL host("http://example.com/"); |
ContentSettingsPattern pattern = |
@@ -660,6 +660,8 @@ TEST_F(HostContentSettingsMapTest, OffTheRecord) { |
EXPECT_EQ(CONTENT_SETTING_ALLOW, |
otr_map->GetContentSetting( |
host, host, CONTENT_SETTINGS_TYPE_IMAGES, "")); |
+ |
+ otr_map->ShutdownOnUIThread(); |
} |
TEST_F(HostContentSettingsMapTest, MigrateObsoletePrefs) { |