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

Unified Diff: chrome/common/desktop_notifications/active_notification_tracker.cc

Issue 549140: If a page is navigated within the same render process, the active notificatio... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 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/common/desktop_notifications/active_notification_tracker.cc
===================================================================
--- chrome/common/desktop_notifications/active_notification_tracker.cc (revision 36880)
+++ chrome/common/desktop_notifications/active_notification_tracker.cc (working copy)
@@ -51,6 +51,14 @@
reverse_notification_table_.erase(*notification);
}
+void ActiveNotificationTracker::Clear() {
+ ReverseTable::iterator iter = reverse_notification_table_.begin();
+ while (iter != reverse_notification_table_.end()) {
+ UnregisterNotification((*iter).second);
+ ++iter;
+ }
+}
+
WebNotificationPermissionCallback* ActiveNotificationTracker::GetCallback(
int id) {
DCHECK(MessageLoop::current()->type() == MessageLoop::TYPE_DEFAULT);
« no previous file with comments | « chrome/common/desktop_notifications/active_notification_tracker.h ('k') | chrome/renderer/notification_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698