| 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 2d501d075c71a33d427a425ed1630e83f56ac862..1d5965b221626e8c761acc741860cc25c812350b 100644
|
| --- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
|
| +++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
|
| @@ -1448,10 +1448,6 @@ TEST_F(HostContentSettingsMapTest, MigrateDomainScopedSettings) {
|
| CONTENT_SETTING_ALLOW,
|
| host_content_settings_map->GetContentSetting(
|
| http_host, http_host, CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
| - EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| - host_content_settings_map->GetContentSetting(
|
| - http_host_narrower, http_host_narrower,
|
| - CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
| host_content_settings_map->SetContentSettingCustomScope(
|
| ContentSettingsPattern::FromURL(https_host),
|
| ContentSettingsPattern::Wildcard(), CONTENT_SETTINGS_TYPE_COOKIES,
|
| @@ -1463,6 +1459,10 @@ TEST_F(HostContentSettingsMapTest, MigrateDomainScopedSettings) {
|
| // Settings also apply to subdomains.
|
| EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| host_content_settings_map->GetContentSetting(
|
| + http_host_narrower, http_host_narrower,
|
| + CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
| + EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| + host_content_settings_map->GetContentSetting(
|
| https_host_narrower, https_host_narrower,
|
| CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
|
|
| @@ -1503,19 +1503,19 @@ TEST_F(HostContentSettingsMapTest, MigrateDomainScopedSettings) {
|
| "https://example.com:443");
|
| EXPECT_TRUE(settings[1].primary_pattern.ToString() == "*");
|
|
|
| - // Cookie settings didn't get migrated.
|
| EXPECT_EQ(
|
| CONTENT_SETTING_ALLOW,
|
| host_content_settings_map->GetContentSetting(
|
| http_host, http_host, CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
| EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| host_content_settings_map->GetContentSetting(
|
| - http_host_narrower, http_host_narrower,
|
| - CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
| - EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| - host_content_settings_map->GetContentSetting(
|
| https_host, https_host, CONTENT_SETTINGS_TYPE_COOKIES,
|
| std::string()));
|
| + // Settings still apply to subdomains. Cookie settings didn't get migrated.
|
| + EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| + host_content_settings_map->GetContentSetting(
|
| + http_host_narrower, http_host_narrower,
|
| + CONTENT_SETTINGS_TYPE_COOKIES, std::string()));
|
| EXPECT_EQ(CONTENT_SETTING_ALLOW,
|
| host_content_settings_map->GetContentSetting(
|
| https_host_narrower, https_host_narrower,
|
|
|