mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 01:26:03 +01:00
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
diff --git content/browser/scheduler/responsiveness/native_event_observer_mac.mm content/browser/scheduler/responsiveness/native_event_observer_mac.mm
|
|
index 7cb3238e97edb..ae800739b6863 100644
|
|
--- content/browser/scheduler/responsiveness/native_event_observer_mac.mm
|
|
+++ content/browser/scheduler/responsiveness/native_event_observer_mac.mm
|
|
@@ -12,13 +12,15 @@ namespace content {
|
|
namespace responsiveness {
|
|
|
|
void NativeEventObserver::RegisterObserver() {
|
|
- DCHECK([NSApp conformsToProtocol:@protocol(NativeEventProcessor)]);
|
|
+ if (![NSApp conformsToProtocol:@protocol(NativeEventProcessor)])
|
|
+ return;
|
|
id<NativeEventProcessor> processor =
|
|
static_cast<id<NativeEventProcessor>>(NSApp);
|
|
[processor addNativeEventProcessorObserver:this];
|
|
}
|
|
void NativeEventObserver::DeregisterObserver() {
|
|
- DCHECK([NSApp conformsToProtocol:@protocol(NativeEventProcessor)]);
|
|
+ if (![NSApp conformsToProtocol:@protocol(NativeEventProcessor)])
|
|
+ return;
|
|
id<NativeEventProcessor> processor =
|
|
static_cast<id<NativeEventProcessor>>(NSApp);
|
|
[processor removeNativeEventProcessorObserver:this];
|