build: work around ScreenCaptureKit bad feature flag parsing in Chromium (#41622)

This commit is contained in:
Shelley Vohr 2024-03-19 10:49:41 +01:00 committed by GitHub
parent daecbb90fe
commit 1cd7419718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,8 @@
#include <string>
#include "base/dcheck_is_on.h"
namespace electron {
std::string EnablePlatformSpecificFeatures() {
@ -19,8 +21,12 @@ std::string EnablePlatformSpecificFeatures() {
// chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
// kThumbnailCapturerMac,
// chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
#if DCHECK_IS_ON()
return "";
#else
return "ScreenCaptureKitPickerScreen,ScreenCaptureKitStreamPickerSonoma,"
"ThumbnailCapturerMac:capture_mode/sc_screenshot_manager";
#endif
}
return "";
}