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

Unified Diff: chrome/browser/notifications/non_persistent_notification_handler.cc

Issue 2917923004: Move handler processing to NotificationDisplayService
Patch Set: Created 3 years, 7 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/non_persistent_notification_handler.cc
diff --git a/chrome/browser/notifications/non_persistent_notification_handler.cc b/chrome/browser/notifications/non_persistent_notification_handler.cc
index 091aff5635eac17a0e703028f128b7420dc00998..7211d461fc1474bf5383902a1bf6fd1c1aa2270a 100644
--- a/chrome/browser/notifications/non_persistent_notification_handler.cc
+++ b/chrome/browser/notifications/non_persistent_notification_handler.cc
@@ -11,6 +11,13 @@
NonPersistentNotificationHandler::NonPersistentNotificationHandler() = default;
NonPersistentNotificationHandler::~NonPersistentNotificationHandler() = default;
+void NonPersistentNotificationHandler::OnShow(
+ Profile* profile,
+ const std::string& notification_id) {
+ content::NotificationEventDispatcher::GetInstance()
+ ->DispatchNonPersistentShowEvent(notification_id);
+}
+
void NonPersistentNotificationHandler::OnClose(
Profile* profile,
const std::string& origin,

Powered by Google App Engine
This is Rietveld 408576698