|
Check all settings when checking mic and camera access.
We check if we have camera or mic access when devices are enumerated to determine if labels should be visible or not. We must ensure all settings are checked when doing this.
* Add interface to ContentBrowserClient for checking media access permission. Add implementation in //chrome.
* Refactor permission checking in MediaStreamDevicesController to be able to use them from elsewhere.
* Add checking policy and app permission to the existing content settings check.
* Remove old interfaces on ResourceContext and its implementations.
* Move the permission check from MediaStreamDispatcherHost to MediaStreamManager.
* Refactor MediaStreamManager to be able to mock the check function and update unit test to mock it.
TBR=jochen@chromium.org (for a few trivial changes)
BUG= 406094
Committed: https://crrev.com/72dc4829a2a5bd7cbf42c956ac9ba6e8e744b004
Cr-Commit-Position: refs/heads/master@{#292868}
Total comments: 8
Total comments: 16
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+369 lines, -244 lines) |
Patch |
 |
M |
android_webview/browser/aw_resource_context.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/aw_resource_context.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_capture_devices_dispatcher.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_capture_devices_dispatcher.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+73 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/media/media_stream_device_permissions.h
|
View
|
1
2
3
4
5
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/media/media_stream_device_permissions.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+87 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_stream_devices_controller.h
|
View
|
1
|
2 chunks |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_stream_devices_controller.cc
|
View
|
1
2
3
4
5
|
9 chunks |
+15 lines, -75 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_io_data.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_io_data.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromecast/shell/browser/cast_browser_context.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/resource_scheduler_unittest.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/device_request_message_filter.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/device_request_message_filter_unittest.cc
|
View
|
1
2
|
4 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.h
|
View
|
1
2
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+41 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.h
|
View
|
1
2
3
4
5
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
1
2
3
4
5
|
11 chunks |
+61 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/content_browser_client.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -0 lines |
1 comment
|
Download
|
 |
M |
content/public/browser/content_browser_client.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/resource_context.h
|
View
|
1
2
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_resource_context.h
|
View
|
1
2
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_resource_context.cc
|
View
|
1
2
|
2 chunks |
+1 line, -11 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/shell_browser_context.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
Total messages: 39 (4 generated)
|