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 <shelley.vohr@gmail.com>
This commit is contained in:
parent
90f03d728e
commit
33e28236b7
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "base/dcheck_is_on.h"
|
||||||
|
|
||||||
namespace electron {
|
namespace electron {
|
||||||
|
|
||||||
std::string EnablePlatformSpecificFeatures() {
|
std::string EnablePlatformSpecificFeatures() {
|
||||||
|
@ -19,8 +21,12 @@ std::string EnablePlatformSpecificFeatures() {
|
||||||
// chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
|
// chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
|
||||||
// kThumbnailCapturerMac,
|
// kThumbnailCapturerMac,
|
||||||
// chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
|
// chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
|
||||||
|
#if DCHECK_IS_ON()
|
||||||
|
return "";
|
||||||
|
#else
|
||||||
return "ScreenCaptureKitPickerScreen,ScreenCaptureKitStreamPickerSonoma,"
|
return "ScreenCaptureKitPickerScreen,ScreenCaptureKitStreamPickerSonoma,"
|
||||||
"ThumbnailCapturerMac:capture_mode/sc_screenshot_manager";
|
"ThumbnailCapturerMac:capture_mode/sc_screenshot_manager";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue