diff options
Diffstat (limited to 'chromium/content/browser/notifications/notification_event_dispatcher_impl.cc')
-rw-r--r-- | chromium/content/browser/notifications/notification_event_dispatcher_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/content/browser/notifications/notification_event_dispatcher_impl.cc b/chromium/content/browser/notifications/notification_event_dispatcher_impl.cc index 382991cf492..f5e8409fd2e 100644 --- a/chromium/content/browser/notifications/notification_event_dispatcher_impl.cc +++ b/chromium/content/browser/notifications/notification_event_dispatcher_impl.cc @@ -80,6 +80,7 @@ void DispatchNotificationClickEventOnRegistration( dispatch_complete_callback, service_worker_registration); + DCHECK(service_worker_registration->active_version()); service_worker_registration->active_version()-> DispatchNotificationClickEvent( dispatch_event_callback, @@ -143,7 +144,7 @@ void FindServiceWorkerRegistration( return; } - service_worker_context->FindRegistrationForId( + service_worker_context->FindReadyRegistrationForId( notification_database_data.service_worker_registration_id, origin, base::Bind(&DispatchNotificationClickEventOnRegistration, |