Commit d28a9196 authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

Handle a null NotificationHandler (for TRANSIENT notifications) in one

more place in NativeNotificationDisplayService

Bug: 786866
Change-Id: I908f8db4e75f5fba6d1082c98e4a491da0dc148e
Reviewed-on: https://chromium-review.googlesource.com/779759Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517896}
parent 53c5cda5
......@@ -81,7 +81,8 @@ void NativeNotificationDisplayService::Display(
profile_->IsOffTheRecord(), notification,
std::move(metadata));
NotificationHandler* handler = GetNotificationHandler(notification_type);
handler->OnShow(profile_, notification.id());
if (handler)
handler->OnShow(profile_, notification.id());
} else if (message_center_display_service_) {
message_center_display_service_->Display(notification_type, notification,
std::move(metadata));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment