| Index: chrome/renderer/notification_provider.cc
|
| ===================================================================
|
| --- chrome/renderer/notification_provider.cc (revision 30967)
|
| +++ chrome/renderer/notification_provider.cc (working copy)
|
| @@ -31,7 +31,7 @@
|
| void NotificationProvider::cancel(const WebNotification& notification) {
|
| int id;
|
| bool id_found = manager_.GetId(notification, id);
|
| - DCHECK(id_found);
|
| + // Won't be found if the notification has already been closed by the user.
|
| if (id_found)
|
| Send(new ViewHostMsg_CancelDesktopNotification(view_->routing_id(), id));
|
| }
|
| @@ -40,7 +40,7 @@
|
| const WebNotification& notification) {
|
| int id;
|
| bool id_found = manager_.GetId(notification, id);
|
| - DCHECK(id_found);
|
| + // Won't be found if the notification has already been closed by the user.
|
| if (id_found)
|
| manager_.UnregisterNotification(id);
|
| }
|
|
|