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

Unified Diff: components/content_settings/core/browser/content_settings_registry_unittest.cc

Issue 1442083002: Stop inheriting push notification permissions from regular to incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review nits Created 5 years 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: components/content_settings/core/browser/content_settings_registry_unittest.cc
diff --git a/components/content_settings/core/browser/content_settings_registry_unittest.cc b/components/content_settings/core/browser/content_settings_registry_unittest.cc
index 153dc5bbc39726e366dca8368666950e6550a7e4..50d4b6c71a96503a4dd47a036cf6c70b09f9da00 100644
--- a/components/content_settings/core/browser/content_settings_registry_unittest.cc
+++ b/components/content_settings/core/browser/content_settings_registry_unittest.cc
@@ -44,6 +44,12 @@ TEST_F(ContentSettingsRegistryTest, Properties) {
expected_whitelist.push_back("chrome-devtools");
EXPECT_EQ(expected_whitelist, info->whitelisted_schemes());
+ // Check the other properties are populated correctly.
+ EXPECT_TRUE(info->IsSettingValid(CONTENT_SETTING_SESSION_ONLY));
+ EXPECT_FALSE(info->IsSettingValid(CONTENT_SETTING_ASK));
+ EXPECT_EQ(ContentSettingsInfo::INHERIT_IN_INCOGNITO,
+ info->incognito_behavior());
+
// Check the WebsiteSettingsInfo is populated correctly.
const WebsiteSettingsInfo* website_settings_info =
info->website_settings_info();

Powered by Google App Engine
This is Rietveld 408576698