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

Unified Diff: chrome/browser/profile_resetter/profile_resetter_unittest.cc

Issue 1320673013: Remove HostContentSettingsMap::IsSettingAllowedForType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-issetting-allowed
Patch Set: Created 5 years, 2 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/profile_resetter/profile_resetter_unittest.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter_unittest.cc b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
index 1d7f32f373fbcabdfa9004e7f2eea1feb2f6a177..50420abd5ed2845f57217be4a182712ee4467e22 100644
--- a/chrome/browser/profile_resetter/profile_resetter_unittest.cc
+++ b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
@@ -515,13 +515,11 @@ TEST_F(ProfileResetterTest, ResetContentSettings) {
ContentSetting site_setting = default_setting == CONTENT_SETTING_ALLOW
? CONTENT_SETTING_ALLOW
: CONTENT_SETTING_BLOCK;
- if (HostContentSettingsMap::IsSettingAllowedForType(
- profile()->GetPrefs(), wildcard_setting, content_type)) {
+ if (info->IsSettingValid(wildcard_setting)) {
host_content_settings_map->SetDefaultContentSetting(content_type,
wildcard_setting);
}
- if (HostContentSettingsMap::IsSettingAllowedForType(
- profile()->GetPrefs(), site_setting, content_type)) {
+ if (info->IsSettingValid(site_setting)) {
host_content_settings_map->SetContentSetting(
pattern, ContentSettingsPattern::Wildcard(), content_type,
std::string(), site_setting);

Powered by Google App Engine
This is Rietveld 408576698