Chromium Code Reviews| 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 9b9d38139e7bd3937a5ad3d94476ce3a223cdaa6..be63a273d0e983626dd8e2e5c5bf148c08ae06c3 100644 |
| --- a/content/browser/notifications/notification_message_filter.cc |
| +++ b/content/browser/notifications/notification_message_filter.cc |
| @@ -5,6 +5,8 @@ |
| #include "content/browser/notifications/notification_message_filter.h" |
| #include "base/callback.h" |
| + |
|
James Cook
2015/05/22 18:13:10
nit: no blank line
ncarter (slow)
2015/05/22 18:41:52
Done.
|
| +#include "content/browser/bad_message.h" |
| #include "content/browser/notifications/page_notification_delegate.h" |
| #include "content/browser/notifications/platform_notification_context_impl.h" |
| #include "content/common/platform_notification_messages.h" |
| @@ -138,7 +140,7 @@ void NotificationMessageFilter::OnShowPersistentNotification( |
| DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| if (GetPermissionForOriginOnIO(origin) != |
| blink::WebNotificationPermissionAllowed) { |
| - BadMessageReceived(); |
| + bad_message::ReceivedBadMessage(this, bad_message::NMF_NO_PERMISSION_SHOW); |
| return; |
| } |
| @@ -257,7 +259,7 @@ void NotificationMessageFilter::OnClosePersistentNotification( |
| DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| if (GetPermissionForOriginOnIO(origin) != |
| blink::WebNotificationPermissionAllowed) { |
| - BadMessageReceived(); |
| + bad_message::ReceivedBadMessage(this, bad_message::NMF_NO_PERMISSION_CLOSE); |
| return; |
| } |
| @@ -318,7 +320,7 @@ bool NotificationMessageFilter::VerifyNotificationPermissionGranted( |
| if (permission == blink::WebNotificationPermissionAllowed) |
| return true; |
| - BadMessageReceived(); |
| + bad_message::ReceivedBadMessage(this, bad_message::NMF_NO_PERMISSION_VERIFY); |
| return false; |
| } |