Browse Source

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

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 1 year ago
parent
commit
33e28236b7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      shell/browser/feature_list_mac.mm

+ 6 - 0
shell/browser/feature_list_mac.mm

@@ -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 "";
 }