| Index: chrome/browser/extensions/extension_special_storage_policy_unittest.cc
|
| diff --git a/chrome/browser/extensions/extension_special_storage_policy_unittest.cc b/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
|
| index db4e2f2c72076abb6c05a537c92df2d403fb45ca..b25b31f0e34246b36cb77c736903fe3a5d58f869 100644
|
| --- a/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
|
| +++ b/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
|
| @@ -320,7 +320,7 @@
|
| TestingProfile profile;
|
| content_settings::CookieSettings* cookie_settings =
|
| CookieSettingsFactory::GetForProfile(&profile).get();
|
| - policy_ = new ExtensionSpecialStoragePolicy(&profile);
|
| + policy_ = new ExtensionSpecialStoragePolicy(cookie_settings);
|
|
|
| EXPECT_FALSE(policy_->HasSessionOnlyOrigins());
|
|
|
| @@ -345,18 +345,20 @@
|
|
|
| TEST_F(ExtensionSpecialStoragePolicyTest, IsStorageDurableTest) {
|
| TestingProfile profile;
|
| - policy_ = new ExtensionSpecialStoragePolicy(&profile);
|
| - const GURL kHttpsUrl("https://foo.com");
|
| -
|
| - EXPECT_FALSE(policy_->IsStorageDurable(kHttpsUrl));
|
| + content_settings::CookieSettings* cookie_settings =
|
| + CookieSettingsFactory::GetForProfile(&profile).get();
|
| + policy_ = new ExtensionSpecialStoragePolicy(cookie_settings);
|
| + const GURL kHttpUrl("http://foo.com");
|
| +
|
| + EXPECT_FALSE(policy_->IsStorageDurable(kHttpUrl));
|
|
|
| HostContentSettingsMap* content_settings_map =
|
| HostContentSettingsMapFactory::GetForProfile(&profile);
|
| content_settings_map->SetContentSettingDefaultScope(
|
| - kHttpsUrl, GURL(), CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, std::string(),
|
| + kHttpUrl, GURL(), CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, std::string(),
|
| CONTENT_SETTING_ALLOW);
|
|
|
| - EXPECT_TRUE(policy_->IsStorageDurable(kHttpsUrl));
|
| + EXPECT_TRUE(policy_->IsStorageDurable(kHttpUrl));
|
| }
|
|
|
| TEST_F(ExtensionSpecialStoragePolicyTest, NotificationTest) {
|
|
|