Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7036)

Unified Diff: chrome/browser/extensions/extension_special_storage_policy_unittest.cc

Issue 1312453005: Removed Profile::GetHostContentSettingsMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed patch conflict Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 155bd7ffcae274719d4cf19dfd9c8a8c7f3907fc..6671691e5c0c3f233b6d629d77f590cdeb9f0648 100644
--- a/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
+++ b/chrome/browser/extensions/extension_special_storage_policy_unittest.cc
@@ -4,6 +4,7 @@
#include "base/values.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
+#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/extensions/extension_special_storage_policy.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/browser/cookie_settings.h"
@@ -352,7 +353,7 @@ TEST_F(ExtensionSpecialStoragePolicyTest, IsStorageDurableTest) {
EXPECT_FALSE(policy_->IsStorageDurable(kHttpUrl));
HostContentSettingsMap* content_settings_map =
- profile.GetHostContentSettingsMap();
+ HostContentSettingsMapFactory::GetForProfile(&profile);
content_settings_map->SetContentSetting(
ContentSettingsPattern::FromString("foo.com"),
ContentSettingsPattern::Wildcard(), CONTENT_SETTINGS_TYPE_DURABLE_STORAGE,

Powered by Google App Engine
This is Rietveld 408576698