Commit e0f601cd authored by Illia Klimov's avatar Illia Klimov Committed by Commit Bot

Remove UNSANDBOXED_PLUGINS from SiteSettings page.

Due to Flash/Plugins deprecation this CL removes UNSANDBOXED_PLUGINS
from the SiteSettings page.

Bug: 1138156
Change-Id: I443f9aa2626216dc0c1f357e70fb0e3f4e274119
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2517688Reviewed-by: default avatarFinnur Thorarinsson <finnur@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Illia Klimov <elklm@google.com>
Auto-Submit: Illia Klimov <elklm@google.com>
Cr-Commit-Position: refs/heads/master@{#825758}
parent 59930b74
...@@ -1965,21 +1965,6 @@ ...@@ -1965,21 +1965,6 @@
<message name="IDS_SETTINGS_SITE_SETTINGS_SOUND_BLOCKED_EXCEPTIONS" desc="Label for the blocked exceptions site list of the sound content setting."> <message name="IDS_SETTINGS_SITE_SETTINGS_SOUND_BLOCKED_EXCEPTIONS" desc="Label for the blocked exceptions site list of the sound content setting.">
Not allowed to play sound Not allowed to play sound
</message> </message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_DESCRIPTION" desc="Description of the unsandboxed plugins content setting.">
Sites usually use plugins for features like streaming videos or installing apps
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ALLOWED" desc="Label for the enabled option of the unsandboxed plugins content setting.">
Sites can ask to use a plugin to access your computer (recommended)
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_BLOCKED" desc="Label for the disabled option of the unsandboxed plugins content setting.">
Block plugins from accessing your computer
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ALLOWED_EXCEPTIONS" desc="Label for the allowed exceptions site list of the unsandboxed plugins content setting.">
Allowed to use a plugin to access your computer
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_BLOCKED_EXCEPTIONS" desc="Label for the blocked exceptions site list of the unsandboxed plugins content setting.">
Not allowed to use a plugin to access your computer
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_USB_DESCRIPTION" desc="Description of the USB devices content setting."> <message name="IDS_SETTINGS_SITE_SETTINGS_USB_DESCRIPTION" desc="Description of the USB devices content setting.">
Sites usually connect to USB devices for features like printing a document or saving to a storage device Sites usually connect to USB devices for features like printing a document or saving to a storage device
</message> </message>
...@@ -2201,9 +2186,6 @@ ...@@ -2201,9 +2186,6 @@
<message name="IDS_SETTINGS_SITE_SETTINGS_RECENT_ACTIVITY" desc="Label for the section which contains the user's recent permissions changes"> <message name="IDS_SETTINGS_SITE_SETTINGS_RECENT_ACTIVITY" desc="Label for the section which contains the user's recent permissions changes">
Recent activity Recent activity
</message> </message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS" desc="Label for the unsandboxed plugin access site settings.">
Unsandboxed plugin access
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_MIDI_DEVICES" desc="Label for the MIDI devices in site settings."> <message name="IDS_SETTINGS_SITE_SETTINGS_MIDI_DEVICES" desc="Label for the MIDI devices in site settings.">
MIDI devices MIDI devices
</message> </message>
...@@ -2405,15 +2387,6 @@ ...@@ -2405,15 +2387,6 @@
<message name="IDS_SETTINGS_SITE_SETTINGS_AUTOMATIC_DOWNLOAD_BLOCK" desc="The block label for automatic download in site settings."> <message name="IDS_SETTINGS_SITE_SETTINGS_AUTOMATIC_DOWNLOAD_BLOCK" desc="The block label for automatic download in site settings.">
Do not allow any site to download multiple files automatically Do not allow any site to download multiple files automatically
</message> </message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ASK" desc="The allow label for unsandboxed plugins in site settings.">
Ask when a site wants to use a plugin to access your computer
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ASK_RECOMMENDED" desc="The allow label for unsandboxed plugins in site settings (with the 'recommended' suffix).">
Ask when a site wants to use a plugin to access your computer (recommended)
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_BLOCK" desc="The block label for unsandboxed plugins in site settings.">
Do not allow any site to use a plugin to access your computer
</message>
<message name="IDS_SETTINGS_SITE_SETTINGS_WINDOW_PLACEMENT" desc="Label for the window placement site settings."> <message name="IDS_SETTINGS_SITE_SETTINGS_WINDOW_PLACEMENT" desc="Label for the window placement site settings.">
Window placement Window placement
</message> </message>
......
...@@ -112,9 +112,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest { ...@@ -112,9 +112,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest {
EXPECT_EQ(CONTENT_SETTING_ASK, EXPECT_EQ(CONTENT_SETTING_ASK,
map->GetContentSetting(example_url, example_url, map->GetContentSetting(example_url, example_url,
ContentSettingsType::MEDIASTREAM_CAMERA)); ContentSettingsType::MEDIASTREAM_CAMERA));
EXPECT_EQ(CONTENT_SETTING_ASK,
map->GetContentSetting(example_url, example_url,
ContentSettingsType::PPAPI_BROKER));
EXPECT_EQ(CONTENT_SETTING_ASK, EXPECT_EQ(CONTENT_SETTING_ASK,
map->GetContentSetting(example_url, example_url, map->GetContentSetting(example_url, example_url,
ContentSettingsType::AUTOMATIC_DOWNLOADS)); ContentSettingsType::AUTOMATIC_DOWNLOADS));
...@@ -146,9 +143,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest { ...@@ -146,9 +143,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest {
EXPECT_EQ(CONTENT_SETTING_BLOCK, EXPECT_EQ(CONTENT_SETTING_BLOCK,
map->GetContentSetting(url, url, map->GetContentSetting(url, url,
ContentSettingsType::MEDIASTREAM_CAMERA)); ContentSettingsType::MEDIASTREAM_CAMERA));
EXPECT_EQ(
CONTENT_SETTING_BLOCK,
map->GetContentSetting(url, url, ContentSettingsType::PPAPI_BROKER));
EXPECT_EQ(CONTENT_SETTING_BLOCK, EXPECT_EQ(CONTENT_SETTING_BLOCK,
map->GetContentSetting(url, url, map->GetContentSetting(url, url,
ContentSettingsType::AUTOMATIC_DOWNLOADS)); ContentSettingsType::AUTOMATIC_DOWNLOADS));
...@@ -187,9 +181,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest { ...@@ -187,9 +181,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest {
EXPECT_EQ(CONTENT_SETTING_ASK, EXPECT_EQ(CONTENT_SETTING_ASK,
map->GetContentSetting(url, url, map->GetContentSetting(url, url,
ContentSettingsType::MEDIASTREAM_CAMERA)); ContentSettingsType::MEDIASTREAM_CAMERA));
EXPECT_EQ(
CONTENT_SETTING_ASK,
map->GetContentSetting(url, url, ContentSettingsType::PPAPI_BROKER));
EXPECT_EQ(CONTENT_SETTING_ASK, EXPECT_EQ(CONTENT_SETTING_ASK,
map->GetContentSetting(url, url, map->GetContentSetting(url, url,
ContentSettingsType::AUTOMATIC_DOWNLOADS)); ContentSettingsType::AUTOMATIC_DOWNLOADS));
...@@ -225,8 +216,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest { ...@@ -225,8 +216,6 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest {
map->GetContentSetting(url, url, ContentSettingsType::MEDIASTREAM_MIC)); map->GetContentSetting(url, url, ContentSettingsType::MEDIASTREAM_MIC));
content_settings.push_back(map->GetContentSetting( content_settings.push_back(map->GetContentSetting(
url, url, ContentSettingsType::MEDIASTREAM_CAMERA)); url, url, ContentSettingsType::MEDIASTREAM_CAMERA));
content_settings.push_back(
map->GetContentSetting(url, url, ContentSettingsType::PPAPI_BROKER));
content_settings.push_back(map->GetContentSetting( content_settings.push_back(map->GetContentSetting(
url, url, ContentSettingsType::AUTOMATIC_DOWNLOADS)); url, url, ContentSettingsType::AUTOMATIC_DOWNLOADS));
content_settings.push_back( content_settings.push_back(
......
...@@ -706,48 +706,6 @@ ...@@ -706,48 +706,6 @@
</settings-subpage> </settings-subpage>
</template> </template>
</template> </template>
<template is="dom-if" route-path="/content/unsandboxedPlugins" no-search>
<settings-subpage page-title="$i18n{siteSettingsUnsandboxedPlugins}"
search-label="$i18n{siteSettingsAllSitesSearch}"
search-term="{{searchFilter_}}">
<template is="dom-if" if="[[enableContentSettingsRedesign_]]">
<div class="content-settings-header">
<h2>$i18n{siteSettingsUnsandboxedPluginsDescription}</h2>
</div>
<settings-category-default-radio-group
category="[[ContentSettingsTypes.UNSANDBOXED_PLUGINS]]"
allow-option-label=
"$i18n{siteSettingsUnsandboxedPluginsAllowed}"
allow-option-icon="cr:extension"
block-option-label=
"$i18n{siteSettingsUnsandboxedPluginsBlocked}"
block-option-icon="settings:block">
</settings-category-default-radio-group>
<category-setting-exceptions
category="[[ContentSettingsTypes.UNSANDBOXED_PLUGINS]]"
allow-header=
"$i18n{siteSettingsUnsandboxedPluginsAllowedExceptions}"
block-header=
"$i18n{siteSettingsUnsandboxedPluginsBlockedExceptions}"
search-filter="[[searchFilter_]]">
</category-setting-exceptions>
</template>
<template is="dom-if" if="[[!enableContentSettingsRedesign_]]">
<category-default-setting
toggle-off-label="$i18n{siteSettingsUnsandboxedPluginsBlock}"
toggle-on-label=
"$i18n{siteSettingsUnsandboxedPluginsAskRecommended}"
category="[[ContentSettingsTypes.UNSANDBOXED_PLUGINS]]">
</category-default-setting>
<category-setting-exceptions
category="[[ContentSettingsTypes.UNSANDBOXED_PLUGINS]]"
block-header="$i18n{siteSettingsBlock}"
allow-header="$i18n{siteSettingsAllow}"
search-filter="[[searchFilter_]]">
</category-setting-exceptions>
</template>
</settings-subpage>
</template>
<template is="dom-if" route-path="/content/midiDevices" no-search> <template is="dom-if" route-path="/content/midiDevices" no-search>
<settings-subpage page-title="$i18n{siteSettingsMidiDevices}" <settings-subpage page-title="$i18n{siteSettingsMidiDevices}"
search-label="$i18n{siteSettingsAllSitesSearch}" search-label="$i18n{siteSettingsAllSitesSearch}"
......
...@@ -55,8 +55,6 @@ function addPrivacyChildRoutes(r) { ...@@ -55,8 +55,6 @@ function addPrivacyChildRoutes(r) {
r.SITE_SETTINGS_MICROPHONE = r.SITE_SETTINGS.createChild('microphone'); r.SITE_SETTINGS_MICROPHONE = r.SITE_SETTINGS.createChild('microphone');
r.SITE_SETTINGS_NOTIFICATIONS = r.SITE_SETTINGS.createChild('notifications'); r.SITE_SETTINGS_NOTIFICATIONS = r.SITE_SETTINGS.createChild('notifications');
r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups');
r.SITE_SETTINGS_UNSANDBOXED_PLUGINS =
r.SITE_SETTINGS.createChild('unsandboxedPlugins');
r.SITE_SETTINGS_MIDI_DEVICES = r.SITE_SETTINGS.createChild('midiDevices'); r.SITE_SETTINGS_MIDI_DEVICES = r.SITE_SETTINGS.createChild('midiDevices');
r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices');
r.SITE_SETTINGS_HID_DEVICES = r.SITE_SETTINGS.createChild('hidDevices'); r.SITE_SETTINGS_HID_DEVICES = r.SITE_SETTINGS.createChild('hidDevices');
......
...@@ -74,7 +74,6 @@ import {Route} from './router.m.js'; ...@@ -74,7 +74,6 @@ import {Route} from './router.m.js';
* SITE_SETTINGS_PROTECTED_CONTENT: !Route, * SITE_SETTINGS_PROTECTED_CONTENT: !Route,
* SITE_SETTINGS_SITE_DATA: !Route, * SITE_SETTINGS_SITE_DATA: !Route,
* SITE_SETTINGS_SITE_DETAILS: !Route, * SITE_SETTINGS_SITE_DETAILS: !Route,
* SITE_SETTINGS_UNSANDBOXED_PLUGINS: !Route,
* SITE_SETTINGS_USB_DEVICES: !Route, * SITE_SETTINGS_USB_DEVICES: !Route,
* SITE_SETTINGS_SERIAL_PORTS: !Route, * SITE_SETTINGS_SERIAL_PORTS: !Route,
* SITE_SETTINGS_VR: !Route, * SITE_SETTINGS_VR: !Route,
......
...@@ -36,9 +36,9 @@ localized to the language settings of the user. Examples: ...@@ -36,9 +36,9 @@ localized to the language settings of the user. Examples:
``` ```
<site-details-permission <site-details-permission
category="{{ContentSettingsTypes.UNSANDBOXED_PLUGINS}}" category="{{ContentSettingsTypes.SITE_SETTINGS_SOUND}}"
icon="cr:extension" id="unsandboxedPlugins" icon="settings:volume-up" id="siteSettingsSound"
label="$i18n{siteSettingsUnsandboxedPlugins}"> label="$i18n{siteSettingsSound}">
</site-details-permission> </site-details-permission>
``` ```
......
...@@ -177,7 +177,6 @@ Polymer({ ...@@ -177,7 +177,6 @@ Polymer({
case ContentSettingsTypes.GEOLOCATION: case ContentSettingsTypes.GEOLOCATION:
case ContentSettingsTypes.MIC: case ContentSettingsTypes.MIC:
case ContentSettingsTypes.NOTIFICATIONS: case ContentSettingsTypes.NOTIFICATIONS:
case ContentSettingsTypes.UNSANDBOXED_PLUGINS:
case ContentSettingsTypes.MIDI_DEVICES: case ContentSettingsTypes.MIDI_DEVICES:
case ContentSettingsTypes.USB_DEVICES: case ContentSettingsTypes.USB_DEVICES:
case ContentSettingsTypes.SERIAL_PORTS: case ContentSettingsTypes.SERIAL_PORTS:
......
...@@ -38,7 +38,6 @@ export const ContentSettingsTypes = { ...@@ -38,7 +38,6 @@ export const ContentSettingsTypes = {
SENSORS: 'sensors', SENSORS: 'sensors',
SERIAL_PORTS: 'serial-ports', SERIAL_PORTS: 'serial-ports',
SOUND: 'sound', SOUND: 'sound',
UNSANDBOXED_PLUGINS: 'ppapi-broker',
USB_DEVICES: 'usb-devices', USB_DEVICES: 'usb-devices',
VR: 'vr', VR: 'vr',
WINDOW_PLACEMENT: 'window-placement', WINDOW_PLACEMENT: 'window-placement',
......
...@@ -101,7 +101,6 @@ Polymer({ ...@@ -101,7 +101,6 @@ Polymer({
case ContentSettingsTypes.GEOLOCATION: case ContentSettingsTypes.GEOLOCATION:
case ContentSettingsTypes.MIC: case ContentSettingsTypes.MIC:
case ContentSettingsTypes.NOTIFICATIONS: case ContentSettingsTypes.NOTIFICATIONS:
case ContentSettingsTypes.UNSANDBOXED_PLUGINS:
case ContentSettingsTypes.MIDI_DEVICES: case ContentSettingsTypes.MIDI_DEVICES:
case ContentSettingsTypes.USB_DEVICES: case ContentSettingsTypes.USB_DEVICES:
case ContentSettingsTypes.SERIAL_PORTS: case ContentSettingsTypes.SERIAL_PORTS:
......
...@@ -186,10 +186,6 @@ ...@@ -186,10 +186,6 @@
<site-details-permission category="[[ContentSettingsTypes.HID_DEVICES]]" <site-details-permission category="[[ContentSettingsTypes.HID_DEVICES]]"
icon="settings:hid-device" label="$i18n{siteSettingsHidDevices}"> icon="settings:hid-device" label="$i18n{siteSettingsHidDevices}">
</site-details-permission> </site-details-permission>
<site-details-permission
category="[[ContentSettingsTypes.UNSANDBOXED_PLUGINS]]"
icon="cr:extension" label="$i18n{siteSettingsUnsandboxedPlugins}">
</site-details-permission>
<if expr="chromeos"> <if expr="chromeos">
<site-details-permission <site-details-permission
category="[[ContentSettingsTypes.PROTECTED_CONTENT]]" category="[[ContentSettingsTypes.PROTECTED_CONTENT]]"
......
...@@ -136,8 +136,6 @@ Polymer({ ...@@ -136,8 +136,6 @@ Polymer({
return this.i18n('siteSettingsCamera'); return this.i18n('siteSettingsCamera');
case ContentSettingsTypes.PROTOCOL_HANDLERS: case ContentSettingsTypes.PROTOCOL_HANDLERS:
return this.i18n('siteSettingsHandlers'); return this.i18n('siteSettingsHandlers');
case ContentSettingsTypes.UNSANDBOXED_PLUGINS:
return this.i18n('siteSettingsUnsandboxedPlugins');
case ContentSettingsTypes.AUTOMATIC_DOWNLOADS: case ContentSettingsTypes.AUTOMATIC_DOWNLOADS:
return this.i18n('siteSettingsAutomaticDownloads'); return this.i18n('siteSettingsAutomaticDownloads');
case ContentSettingsTypes.BACKGROUND_SYNC: case ContentSettingsTypes.BACKGROUND_SYNC:
......
...@@ -275,14 +275,6 @@ function getCategoryItemMap() { ...@@ -275,14 +275,6 @@ function getCategoryItemMap() {
enabledLabel: 'siteSettingsSoundAllow', enabledLabel: 'siteSettingsSoundAllow',
disabledLabel: 'siteSettingsSoundBlock', disabledLabel: 'siteSettingsSoundBlock',
}, },
{
route: routes.SITE_SETTINGS_UNSANDBOXED_PLUGINS,
id: Id.UNSANDBOXED_PLUGINS,
label: 'siteSettingsUnsandboxedPlugins',
icon: 'cr:extension',
enabledLabel: 'siteSettingsUnsandboxedPluginsAsk',
disabledLabel: 'siteSettingsUnsandboxedPluginsBlock',
},
{ {
route: routes.SITE_SETTINGS_USB_DEVICES, route: routes.SITE_SETTINGS_USB_DEVICES,
id: Id.USB_DEVICES, id: Id.USB_DEVICES,
...@@ -366,7 +358,6 @@ Polymer({ ...@@ -366,7 +358,6 @@ Polymer({
permissionsAdvanced: buildItemListFromIds([ permissionsAdvanced: buildItemListFromIds([
Id.SENSORS, Id.SENSORS,
Id.AUTOMATIC_DOWNLOADS, Id.AUTOMATIC_DOWNLOADS,
Id.UNSANDBOXED_PLUGINS,
Id.PROTOCOL_HANDLERS, Id.PROTOCOL_HANDLERS,
Id.MIDI_DEVICES, Id.MIDI_DEVICES,
Id.USB_DEVICES, Id.USB_DEVICES,
......
...@@ -1683,8 +1683,6 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source, ...@@ -1683,8 +1683,6 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source,
IDS_SETTINGS_SITE_SETTINGS_PROTECTED_CONTENT_ENABLE_IDENTIFIERS}, IDS_SETTINGS_SITE_SETTINGS_PROTECTED_CONTENT_ENABLE_IDENTIFIERS},
#endif #endif
{"siteSettingsPopups", IDS_SETTINGS_SITE_SETTINGS_POPUPS}, {"siteSettingsPopups", IDS_SETTINGS_SITE_SETTINGS_POPUPS},
{"siteSettingsUnsandboxedPlugins",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS},
{"siteSettingsHidDevices", IDS_SETTINGS_SITE_SETTINGS_HID_DEVICES}, {"siteSettingsHidDevices", IDS_SETTINGS_SITE_SETTINGS_HID_DEVICES},
{"siteSettingsHidDevicesAsk", IDS_SETTINGS_SITE_SETTINGS_HID_DEVICES_ASK}, {"siteSettingsHidDevicesAsk", IDS_SETTINGS_SITE_SETTINGS_HID_DEVICES_ASK},
{"siteSettingsHidDevicesAskRecommended", {"siteSettingsHidDevicesAskRecommended",
...@@ -1758,12 +1756,6 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source, ...@@ -1758,12 +1756,6 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source,
IDS_SETTINGS_SITE_SETTINGS_AUTOMATIC_DOWNLOAD_ASK_RECOMMENDED}, IDS_SETTINGS_SITE_SETTINGS_AUTOMATIC_DOWNLOAD_ASK_RECOMMENDED},
{"siteSettingsAutoDownloadBlock", {"siteSettingsAutoDownloadBlock",
IDS_SETTINGS_SITE_SETTINGS_AUTOMATIC_DOWNLOAD_BLOCK}, IDS_SETTINGS_SITE_SETTINGS_AUTOMATIC_DOWNLOAD_BLOCK},
{"siteSettingsUnsandboxedPluginsAsk",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ASK},
{"siteSettingsUnsandboxedPluginsAskRecommended",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ASK_RECOMMENDED},
{"siteSettingsUnsandboxedPluginsBlock",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_BLOCK},
{"siteSettingsDontShowImages", IDS_SETTINGS_SITE_SETTINGS_DONT_SHOW_IMAGES}, {"siteSettingsDontShowImages", IDS_SETTINGS_SITE_SETTINGS_DONT_SHOW_IMAGES},
{"siteSettingsShowAll", IDS_SETTINGS_SITE_SETTINGS_SHOW_ALL}, {"siteSettingsShowAll", IDS_SETTINGS_SITE_SETTINGS_SHOW_ALL},
{"siteSettingsShowAllRecommended", {"siteSettingsShowAllRecommended",
...@@ -2115,16 +2107,6 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source, ...@@ -2115,16 +2107,6 @@ void AddSiteSettingsStrings(content::WebUIDataSource* html_source,
IDS_SETTINGS_SITE_SETTINGS_SOUND_ALLOWED_EXCEPTIONS}, IDS_SETTINGS_SITE_SETTINGS_SOUND_ALLOWED_EXCEPTIONS},
{"siteSettingsSoundBlockedExceptions", {"siteSettingsSoundBlockedExceptions",
IDS_SETTINGS_SITE_SETTINGS_SOUND_BLOCKED_EXCEPTIONS}, IDS_SETTINGS_SITE_SETTINGS_SOUND_BLOCKED_EXCEPTIONS},
{"siteSettingsUnsandboxedPluginsDescription",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_DESCRIPTION},
{"siteSettingsUnsandboxedPluginsAllowed",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ALLOWED},
{"siteSettingsUnsandboxedPluginsBlocked",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_BLOCKED},
{"siteSettingsUnsandboxedPluginsAllowedExceptions",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_ALLOWED_EXCEPTIONS},
{"siteSettingsUnsandboxedPluginsBlockedExceptions",
IDS_SETTINGS_SITE_SETTINGS_UNSANDBOXED_PLUGINS_BLOCKED_EXCEPTIONS},
{"siteSettingsUsbDescription", IDS_SETTINGS_SITE_SETTINGS_USB_DESCRIPTION}, {"siteSettingsUsbDescription", IDS_SETTINGS_SITE_SETTINGS_USB_DESCRIPTION},
{"siteSettingsUsbAllowed", IDS_SETTINGS_SITE_SETTINGS_USB_ALLOWED}, {"siteSettingsUsbAllowed", IDS_SETTINGS_SITE_SETTINGS_USB_ALLOWED},
{"siteSettingsUsbBlocked", IDS_SETTINGS_SITE_SETTINGS_USB_BLOCKED}, {"siteSettingsUsbBlocked", IDS_SETTINGS_SITE_SETTINGS_USB_BLOCKED},
......
...@@ -25,9 +25,10 @@ document.addEventListener('DOMContentLoaded', function () { ...@@ -25,9 +25,10 @@ document.addEventListener('DOMContentLoaded', function () {
var current = tabs[0]; var current = tabs[0];
incognito = current.incognito; incognito = current.incognito;
url = current.url; url = current.url;
var types = ['cookies', 'images', 'javascript', 'location', 'plugins', var types = [
'popups', 'notifications', 'microphone', 'camera', 'cookies', 'images', 'javascript', 'location', 'popups', 'notifications',
'unsandboxedPlugins', 'automaticDownloads']; 'microphone', 'camera', 'automaticDownloads'
];
types.forEach(function(type) { types.forEach(function(type) {
// HACK: [type] is not recognised by the docserver's sample crawler, so // HACK: [type] is not recognised by the docserver's sample crawler, so
// mention an explicit // mention an explicit
......
...@@ -24,7 +24,6 @@ var settings = [ ...@@ -24,7 +24,6 @@ var settings = [
'notifications', 'notifications',
'microphone', 'microphone',
'camera', 'camera',
'unsandboxedPlugins',
'automaticDownloads' 'automaticDownloads'
]; ];
......
...@@ -17,7 +17,6 @@ var default_content_settings = { ...@@ -17,7 +17,6 @@ var default_content_settings = {
"mouselock": "ask", "mouselock": "ask",
"microphone": "ask", "microphone": "ask",
"camera": "ask", "camera": "ask",
"unsandboxedPlugins": "ask",
"automaticDownloads": "ask" "automaticDownloads": "ask"
}; };
...@@ -32,7 +31,6 @@ var settings = { ...@@ -32,7 +31,6 @@ var settings = {
"mouselock": "block", // Should be ignored. "mouselock": "block", // Should be ignored.
"microphone": "block", "microphone": "block",
"camera": "block", "camera": "block",
"unsandboxedPlugins": "block",
"automaticDownloads": "block" "automaticDownloads": "block"
}; };
......
...@@ -39,7 +39,6 @@ const redesignedPages = [ ...@@ -39,7 +39,6 @@ const redesignedPages = [
routes.SITE_SETTINGS_SENSORS, routes.SITE_SETTINGS_SENSORS,
routes.SITE_SETTINGS_SERIAL_PORTS, routes.SITE_SETTINGS_SERIAL_PORTS,
routes.SITE_SETTINGS_SOUND, routes.SITE_SETTINGS_SOUND,
routes.SITE_SETTINGS_UNSANDBOXED_PLUGINS,
routes.SITE_SETTINGS_USB_DEVICES, routes.SITE_SETTINGS_USB_DEVICES,
routes.SITE_SETTINGS_VR, routes.SITE_SETTINGS_VR,
......
...@@ -101,9 +101,6 @@ suite('SiteDetails', function() { ...@@ -101,9 +101,6 @@ suite('SiteDetails', function() {
createContentSettingTypeToValuePair( createContentSettingTypeToValuePair(
ContentSettingsTypes.CAMERA, ContentSettingsTypes.CAMERA,
[createRawSiteException('https://foo.com:443')]), [createRawSiteException('https://foo.com:443')]),
createContentSettingTypeToValuePair(
ContentSettingsTypes.UNSANDBOXED_PLUGINS,
[createRawSiteException('https://foo.com:443')]),
createContentSettingTypeToValuePair( createContentSettingTypeToValuePair(
ContentSettingsTypes.AUTOMATIC_DOWNLOADS, ContentSettingsTypes.AUTOMATIC_DOWNLOADS,
[createRawSiteException('https://foo.com:443')]), [createRawSiteException('https://foo.com:443')]),
......
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