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

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

Issue 2860473002: [Merge to M58] CrOS: Do not allow notifications to be added during shutdown. (Closed)
Patch Set: Created 3 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/notification_test_util.h
diff --git a/chrome/browser/notifications/notification_test_util.h b/chrome/browser/notifications/notification_test_util.h
index cbd6b82d4c9cc34e7ff68345e8e6b8c736370605..5b1b5b200c30b881cf94d1966c07b5acb7f1930e 100644
--- a/chrome/browser/notifications/notification_test_util.h
+++ b/chrome/browser/notifications/notification_test_util.h
@@ -70,6 +70,7 @@ class StubNotificationUIManager : public NotificationUIManager {
bool CancelAllBySourceOrigin(const GURL& source_origin) override;
bool CancelAllByProfile(ProfileID profile_id) override;
void CancelAll() override;
+ void StartShutdown() override;
private:
using NotificationPair = std::pair<Notification, ProfileID>;
@@ -77,6 +78,8 @@ class StubNotificationUIManager : public NotificationUIManager {
base::Closure notification_added_callback_;
+ bool is_shutdown_started_ = false;
+
DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager);
};
« no previous file with comments | « chrome/browser/notifications/notification_system_observer.cc ('k') | chrome/browser/notifications/notification_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698