mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
6573df6cc3
- Windows: 10.0.19041 SDK is now required. - macOS: 10.15.1 SDK (at least Xcode 11.2) is now required. - Remove CefMediaSource::IsValid and CefMediaSink::IsValid which would always return true.
25 lines
891 B
Diff
25 lines
891 B
Diff
diff --git base/message_loop/message_pump_mac.mm base/message_loop/message_pump_mac.mm
|
|
index 1d0ac66a9174..4ddaca449e8b 100644
|
|
--- base/message_loop/message_pump_mac.mm
|
|
+++ base/message_loop/message_pump_mac.mm
|
|
@@ -644,7 +644,8 @@ void MessagePumpUIApplication::Detach() {
|
|
#else
|
|
|
|
ScopedPumpMessagesInPrivateModes::ScopedPumpMessagesInPrivateModes() {
|
|
- DCHECK(g_app_pump);
|
|
+ if (!g_app_pump)
|
|
+ return;
|
|
DCHECK_EQ(kNSApplicationModalSafeModeMask, g_app_pump->GetModeMask());
|
|
// Pumping events in private runloop modes is known to interact badly with
|
|
// app modal windows like NSAlert.
|
|
@@ -654,7 +655,8 @@ ScopedPumpMessagesInPrivateModes::ScopedPumpMessagesInPrivateModes() {
|
|
}
|
|
|
|
ScopedPumpMessagesInPrivateModes::~ScopedPumpMessagesInPrivateModes() {
|
|
- DCHECK(g_app_pump);
|
|
+ if (!g_app_pump)
|
|
+ return;
|
|
g_app_pump->SetModeMask(kNSApplicationModalSafeModeMask);
|
|
}
|
|
|