Partition MediaDeviceId by default: added visibility of camera content setting in desktops (#1399)
This commit is contained in:
@@ -5,11 +5,26 @@ Subject: Partition MediaDeviceId by default
|
||||
and, in windows, hide the presence of the webcam if the user has not given permission
|
||||
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||||
---
|
||||
components/media_device_salt/media_device_salt_service.cc | 3 +++
|
||||
content/browser/media/media_devices_util.cc | 3 +++
|
||||
content/browser/renderer_host/media/media_devices_manager.cc | 5 +++++
|
||||
3 files changed, 11 insertions(+)
|
||||
.../core/browser/bromite_content_settings/camera.inc | 8 ++++++++
|
||||
components/media_device_salt/media_device_salt_service.cc | 3 +++
|
||||
content/browser/media/media_devices_util.cc | 3 +++
|
||||
.../browser/renderer_host/media/media_devices_manager.cc | 5 +++++
|
||||
4 files changed, 19 insertions(+)
|
||||
create mode 100644 components/content_settings/core/browser/bromite_content_settings/camera.inc
|
||||
|
||||
diff --git a/components/content_settings/core/browser/bromite_content_settings/camera.inc b/components/content_settings/core/browser/bromite_content_settings/camera.inc
|
||||
new file mode 100644
|
||||
--- /dev/null
|
||||
+++ b/components/content_settings/core/browser/bromite_content_settings/camera.inc
|
||||
@@ -0,0 +1,8 @@
|
||||
+#if !BUILDFLAG(IS_ANDROID)
|
||||
+
|
||||
+ content_settings::WebsiteSettingsRegistry::GetInstance()
|
||||
+ ->GetMutable(ContentSettingsType::MEDIASTREAM_CAMERA)
|
||||
+ ->set_show_into_info_page()
|
||||
+ .set_desktop_ui();
|
||||
+
|
||||
+#endif
|
||||
diff --git a/components/media_device_salt/media_device_salt_service.cc b/components/media_device_salt/media_device_salt_service.cc
|
||||
--- a/components/media_device_salt/media_device_salt_service.cc
|
||||
+++ b/components/media_device_salt/media_device_salt_service.cc
|
||||
|
||||
Reference in New Issue
Block a user