Index: chrome/browser/notifications/message_center_display_service.cc |
diff --git a/chrome/browser/notifications/message_center_display_service.cc b/chrome/browser/notifications/message_center_display_service.cc |
index 8dc7420cafe2b9fdc9811c8ff68980b7a12b6de2..ebd3b15491625a10436df02eeb6529893adf73f1 100644 |
--- a/chrome/browser/notifications/message_center_display_service.cc |
+++ b/chrome/browser/notifications/message_center_display_service.cc |
@@ -15,12 +15,16 @@ MessageCenterDisplayService::MessageCenterDisplayService( |
MessageCenterDisplayService::~MessageCenterDisplayService() {} |
-void MessageCenterDisplayService::Display(const std::string& notification_id, |
- const Notification& notification) { |
+void MessageCenterDisplayService::Display( |
+ notification_operation_common::NotificationHandlerType notification_type, |
+ const std::string& notification_id, |
+ const Notification& notification) { |
ui_manager_->Add(notification, profile_); |
} |
-void MessageCenterDisplayService::Close(const std::string& notification_id) { |
+void MessageCenterDisplayService::Close( |
+ notification_operation_common::NotificationHandlerType notification_type, |
+ const std::string& notification_id) { |
ui_manager_->CancelById(notification_id, |
NotificationUIManager::GetProfileID(profile_)); |
} |
@@ -35,6 +39,16 @@ bool MessageCenterDisplayService::GetDisplayed( |
return true; |
} |
+void MessageCenterDisplayService::ProcessNotificationOperation( |
+ notification_operation_common::NotificationOperation operation, |
+ notification_operation_common::NotificationHandlerType notification_type, |
+ const std::string& origin, |
+ const std::string& notification_id, |
+ int action_index) { |
+ // Message center based notifications don't receive operations from the |
+ // outside world, everything is managed within chrome's notification center. |
+} |
+ |
bool MessageCenterDisplayService::SupportsNotificationCenter() const { |
return false; |
} |