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

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

Issue 2534443002: Use notification display service to collect persistent notifications. (Closed)
Patch Set: fix infinite loop Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_test_util.h
diff --git a/chrome/browser/notifications/notification_test_util.h b/chrome/browser/notifications/notification_test_util.h
index 5fbb3112f4d14d10670e663d68aeee0c6e0072fe..cbd6b82d4c9cc34e7ff68345e8e6b8c736370605 100644
--- a/chrome/browser/notifications/notification_test_util.h
+++ b/chrome/browser/notifications/notification_test_util.h
@@ -50,6 +50,12 @@ class StubNotificationUIManager : public NotificationUIManager {
// added to the Notification UI manager. Will be invoked on the UI thread.
void SetNotificationAddedCallback(const base::Closure& callback);
+ // Emulates clearing a notification from the notification center
+ // without running any of the delegates. This may happen when native
+ // notification centers don't inform us about closed notifications,
+ // for example as a result of a system reboot.
+ bool SilentDismissById(const std::string& delegate_id, ProfileID profile_id);
+
// NotificationUIManager implementation.
void Add(const Notification& notification, Profile* profile) override;
bool Update(const Notification& notification, Profile* profile) override;
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698