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

Unified Diff: chrome/browser/notifications/notification_ui_manager.h

Issue 11414215: Add CloseAllByProfile to NotificationUIManager and call before destroyng a Profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac Created 8 years, 1 month 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/notification_ui_manager.h
diff --git a/chrome/browser/notifications/notification_ui_manager.h b/chrome/browser/notifications/notification_ui_manager.h
index 6007b550ee10d1315aecc9f3355de1f07539b913..38a0c121b92b7fb259e59c4a17dfe758a8156771 100644
--- a/chrome/browser/notifications/notification_ui_manager.h
+++ b/chrome/browser/notifications/notification_ui_manager.h
@@ -42,11 +42,13 @@ class NotificationUIManager {
// displayed or in the queue. Returns true if anything was removed.
virtual bool CancelById(const std::string& notification_id) = 0;
- // Removes any notifications matching the supplied source origin
- // (which could be an extension ID), either currently displayed or in the
- // queue. Returns true if anything was removed.
+ // Removes notifications matching the |source_origin| (which could be an
+ // extension ID). Returns true if anything was removed.
virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0;
+ // Removes notifications matching |profile|. Returns true if any were removed.
+ virtual bool CancelAllByProfile(Profile* profile) = 0;
+
// Cancels all pending notifications and closes anything currently showing.
// Used when the app is terminating.
virtual void CancelAll() = 0;

Powered by Google App Engine
This is Rietveld 408576698