Index: content/renderer/notification_provider.cc |
diff --git a/content/renderer/notification_provider.cc b/content/renderer/notification_provider.cc |
index 3c2a3c6e4e7c6106faf51a8aaa828a5b9e23b260..b5e749386cceeaa2b9b9e6d7cc32e0d79b095d40 100644 |
--- a/content/renderer/notification_provider.cc |
+++ b/content/renderer/notification_provider.cc |
@@ -118,7 +118,6 @@ bool NotificationProvider::OnMessageReceived(const IPC::Message& message) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(NotificationProvider, message) |
IPC_MESSAGE_HANDLER(DesktopNotificationMsg_PostDisplay, OnDisplay); |
- IPC_MESSAGE_HANDLER(DesktopNotificationMsg_PostError, OnError); |
IPC_MESSAGE_HANDLER(DesktopNotificationMsg_PostClose, OnClose); |
IPC_MESSAGE_HANDLER(DesktopNotificationMsg_PostClick, OnClick); |
IPC_MESSAGE_UNHANDLED(handled = false) |
@@ -139,15 +138,6 @@ void NotificationProvider::OnDisplay(int id) { |
notification.dispatchDisplayEvent(); |
} |
-void NotificationProvider::OnError(int id) { |
- WebNotification notification; |
- bool found = manager_.GetNotification(id, ¬ification); |
- // |found| may be false if the WebNotification went out of scope in |
- // the page before the error occurred. |
- if (found) |
- notification.dispatchErrorEvent(WebString()); |
-} |
- |
void NotificationProvider::OnClose(int id, bool by_user) { |
WebNotification notification; |
bool found = manager_.GetNotification(id, ¬ification); |