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

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: 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 84a2576605af4cebfafc8a8f483ffa4f8338a9a6..55d571408102f370995e2e21eac7b36513d19944 100644
--- a/chrome/browser/notifications/persistent_notification_delegate.cc
+++ b/chrome/browser/notifications/persistent_notification_delegate.cc
@@ -30,7 +30,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