| Index: chrome/browser/renderer_host/render_view_host.cc
 | 
| ===================================================================
 | 
| --- chrome/browser/renderer_host/render_view_host.cc	(revision 30967)
 | 
| +++ chrome/browser/renderer_host/render_view_host.cc	(working copy)
 | 
| @@ -831,6 +831,8 @@
 | 
|                          OnShowDesktopNotification)
 | 
|      IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDesktopNotificationText,
 | 
|                          OnShowDesktopNotificationText)
 | 
| +    IPC_MESSAGE_HANDLER(ViewHostMsg_CancelDesktopNotification,
 | 
| +                        OnCancelDesktopNotification)
 | 
|      IPC_MESSAGE_HANDLER(ViewHostMsg_RequestNotificationPermission,
 | 
|                          OnRequestNotificationPermission)
 | 
|      IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest)
 | 
| @@ -1677,6 +1679,13 @@
 | 
|        DesktopNotificationService::PageNotification, notification_id);
 | 
|  }
 | 
|  
 | 
| +void RenderViewHost::OnCancelDesktopNotification(int notification_id) {
 | 
| +  DesktopNotificationService* service=
 | 
| +      process()->profile()->GetDesktopNotificationService();
 | 
| +  service->CancelDesktopNotification(
 | 
| +      process()->id(), routing_id(), notification_id);
 | 
| +}
 | 
| +
 | 
|  void RenderViewHost::OnRequestNotificationPermission(
 | 
|      const GURL& source_origin, int callback_context) {
 | 
|    DesktopNotificationService* service =
 | 
| 
 |