From 1cd7419718e4246bc663680f5a6ade61d7bd8ced Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 19 Mar 2024 10:49:41 +0100 Subject: [PATCH] build: work around ScreenCaptureKit bad feature flag parsing in Chromium (#41622) --- shell/browser/feature_list_mac.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/browser/feature_list_mac.mm b/shell/browser/feature_list_mac.mm index 5d6bc45d324..c3a01fc2be6 100644 --- a/shell/browser/feature_list_mac.mm +++ b/shell/browser/feature_list_mac.mm @@ -6,6 +6,8 @@ #include +#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 ""; }