Commit 514be711 authored by Andy Paicu's avatar Andy Paicu Committed by Commit Bot

Inherit plugin content setting to incognito.

This allows flash to be used in incognito as well if the user chooses
to.

Bug: 974721
Change-Id: Ibbc825df65b2a0a6b48944cad2bad82cc733eb43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1681762
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Reviewed-by: default avatarBalazs Engedy <engedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#673343}
parent 760fcb02
...@@ -176,7 +176,7 @@ void ContentSettingsRegistry::Init() { ...@@ -176,7 +176,7 @@ void ContentSettingsRegistry::Init() {
CONTENT_SETTING_DETECT_IMPORTANT_CONTENT), CONTENT_SETTING_DETECT_IMPORTANT_CONTENT),
WebsiteSettingsInfo::SINGLE_ORIGIN_WITH_EMBEDDED_EXCEPTIONS_SCOPE, WebsiteSettingsInfo::SINGLE_ORIGIN_WITH_EMBEDDED_EXCEPTIONS_SCOPE,
WebsiteSettingsRegistry::DESKTOP, WebsiteSettingsRegistry::DESKTOP,
ContentSettingsInfo::INHERIT_IF_LESS_PERMISSIVE, ContentSettingsInfo::INHERIT_IN_INCOGNITO,
ContentSettingsInfo::EPHEMERAL, ContentSettingsInfo::EPHEMERAL,
ContentSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS); ContentSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS);
......
...@@ -132,6 +132,7 @@ TEST_F(ContentSettingsRegistryTest, Inheritance) { ...@@ -132,6 +132,7 @@ TEST_F(ContentSettingsRegistryTest, Inheritance) {
// disable features like popup blocking, download blocking or ad blocking. // disable features like popup blocking, download blocking or ad blocking.
// They do not allow access to user data. // They do not allow access to user data.
const ContentSettingsType whitelist[] = { const ContentSettingsType whitelist[] = {
CONTENT_SETTINGS_TYPE_PLUGINS, //
CONTENT_SETTINGS_TYPE_POPUPS, // CONTENT_SETTINGS_TYPE_POPUPS, //
CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS, // CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS, //
CONTENT_SETTINGS_TYPE_ADS, // CONTENT_SETTINGS_TYPE_ADS, //
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment