Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4148)

Unified Diff: chrome/browser/notifications/persistent_notification_delegate.cc

Issue 1071773003: Remove persistent notifications from the database when they close. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/persistent_notification_delegate.cc
diff --git a/chrome/browser/notifications/persistent_notification_delegate.cc b/chrome/browser/notifications/persistent_notification_delegate.cc
index fa9b761bf549a7f3cc67cc9544addf7d053a53db..dba99c7d0f48a3411cc262e735a4a78de0ee1384 100644
--- a/chrome/browser/notifications/persistent_notification_delegate.cc
+++ b/chrome/browser/notifications/persistent_notification_delegate.cc
@@ -22,7 +22,12 @@ PersistentNotificationDelegate::~PersistentNotificationDelegate() {}
void PersistentNotificationDelegate::Display() {}
-void PersistentNotificationDelegate::Close(bool by_user) {}
+void PersistentNotificationDelegate::Close(bool by_user) {
+ PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClose(
+ browser_context_,
+ persistent_notification_id_,
+ origin_);
+}
void PersistentNotificationDelegate::Click() {
PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick(

Powered by Google App Engine
This is Rietveld 408576698