Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump chromium to 124.0.6323.0 (30-x-y) #41475

Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b22b9d6
chore: bump chromium in DEPS to 124.0.6315.0
trop[bot] Feb 29, 2024
3586345
chore: update patches
trop[bot] Feb 29, 2024
0f71bf5
5279678: Stream AIDA responses
trop[bot] Feb 29, 2024
c20283f
5276439: Remove non_network_url_loader_factory_remotes_
trop[bot] Feb 29, 2024
e9f82b9
5310165: Add DevTools API to show search results
trop[bot] Feb 29, 2024
d9dc779
chore: bump chromium in DEPS to 124.0.6317.0
trop[bot] Feb 29, 2024
f7f6776
chore: update patches
trop[bot] Feb 29, 2024
002dda0
Remove Setup.Install.CumulativeDiskUsage2 and supporting code
trop[bot] Feb 29, 2024
933dad2
browser: Make cmd line non-const in process singleton callback
trop[bot] Feb 29, 2024
a156b5e
chore: bump chromium in DEPS to 124.0.6319.0
trop[bot] Feb 29, 2024
2d5938d
chore: bump chromium in DEPS to 124.0.6321.0
trop[bot] Feb 29, 2024
067a942
chore: bump chromium in DEPS to 124.0.6323.0
trop[bot] Feb 29, 2024
56b927e
5318335: Roll src/third_party/boringssl/src 23824fa0f..4fe29ebc7
trop[bot] Feb 29, 2024
53f8ee6
5318051: [CBE Watermarking] Hoist `watermark_view` to a member variable.
trop[bot] Feb 29, 2024
de63d22
chore: fixup patch indices
trop[bot] Feb 29, 2024
d0a5546
4946553: Delegate HID permission to Chrome App in webview
trop[bot] Feb 29, 2024
e035626
5310001: DevTools UI binding for reporting client events to AIDA
trop[bot] Feb 29, 2024
3c6636c
Refactor the predicate taking variant of `__cxx_atomic_wait`
trop[bot] Feb 29, 2024
099f68e
chore: fix browser_view patch harder
trop[bot] Feb 29, 2024
e5b3dfe
5293937: Reland "[gUM] Use preferred device if more than one is eligi…
trop[bot] Feb 29, 2024
47c195f
fix: filter {video|audio} devices by eligible device id
trop[bot] Feb 29, 2024
0902484
5267921: enable speak content under the pointer on PWA and WV2
trop[bot] Feb 29, 2024
aab6f12
5310195: heap: Remove Blink's GCTaskRunner
trop[bot] Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: filter {video|audio} devices by eligible device id
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
trop[bot] and codebytere authored Feb 29, 2024
commit 47c195f61b9f76b548512acdf73c4e4cc4ce6891
28 changes: 22 additions & 6 deletions shell/browser/media/media_capture_devices_dispatcher.cc
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@
// found in the LICENSE-CHROMIUM file.

#include "shell/browser/media/media_capture_devices_dispatcher.h"
// #include "base/no_destructor.h"
#include "base/logging.h"

#include "components/webrtc/media_stream_devices_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/media_capture_devices.h"

@@ -51,16 +51,32 @@ const std::optional<blink::MediaStreamDevice>
MediaCaptureDevicesDispatcher::GetPreferredAudioDeviceForBrowserContext(
content::BrowserContext* browser_context,
const std::vector<std::string>& eligible_audio_device_ids) const {
const auto& devices = GetAudioCaptureDevices();
return devices.empty() ? std::nullopt : std::make_optional(devices.front());
auto audio_devices = GetAudioCaptureDevices();
if (!eligible_audio_device_ids.empty()) {
audio_devices =
webrtc::FilterMediaDevices(audio_devices, eligible_audio_device_ids);
}

if (audio_devices.empty())
return std::nullopt;

return audio_devices.front();
}

const std::optional<blink::MediaStreamDevice>
MediaCaptureDevicesDispatcher::GetPreferredVideoDeviceForBrowserContext(
content::BrowserContext* browser_context,
const std::vector<std::string>& eligible_video_device_ids) const {
const auto& devices = GetVideoCaptureDevices();
return devices.empty() ? std::nullopt : std::make_optional(devices.front());
auto video_devices = GetVideoCaptureDevices();
if (!eligible_video_device_ids.empty()) {
video_devices =
webrtc::FilterMediaDevices(video_devices, eligible_video_device_ids);
}

if (video_devices.empty())
return std::nullopt;

return video_devices.front();
}

} // namespace electron