| Index: content/browser/notifications/notification_message_filter.cc
|
| diff --git a/content/browser/notifications/notification_message_filter.cc b/content/browser/notifications/notification_message_filter.cc
|
| index d522e75f7d54a3c98f5fc561aad7f0828ab5368a..876a89c11e185cb0371b6a4d74294b913f108b19 100644
|
| --- a/content/browser/notifications/notification_message_filter.cc
|
| +++ b/content/browser/notifications/notification_message_filter.cc
|
| @@ -95,6 +95,8 @@
|
| bool NotificationMessageFilter::OnMessageReceived(const IPC::Message& message) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(NotificationMessageFilter, message)
|
| + IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_CheckPermission,
|
| + OnCheckNotificationPermission)
|
| IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_Show,
|
| OnShowPlatformNotification)
|
| IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_ShowPersistent,
|
| @@ -119,6 +121,14 @@
|
| *thread = BrowserThread::UI;
|
| }
|
|
|
| +void NotificationMessageFilter::OnCheckNotificationPermission(
|
| + const GURL& origin,
|
| + blink::mojom::PermissionStatus* permission_status) {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| +
|
| + *permission_status = GetPermissionForOriginOnIO(origin);
|
| +}
|
| +
|
| void NotificationMessageFilter::OnShowPlatformNotification(
|
| int notification_id,
|
| const GURL& origin,
|
|
|