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_display_service.cc

Issue 2928303002: Deprecate native and extension notification delegates. (Closed)
Patch Set: Created 3 years, 6 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_display_service.cc
diff --git a/chrome/browser/notifications/notification_display_service.cc b/chrome/browser/notifications/notification_display_service.cc
index 885b204c5224a7b472136616bb359885bff87d6a..fb695eb4ad393834d0c0784d2de19bfde788a8d7 100644
--- a/chrome/browser/notifications/notification_display_service.cc
+++ b/chrome/browser/notifications/notification_display_service.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/notifications/notification_common.h"
#include "chrome/browser/notifications/persistent_notification_handler.h"
#include "extensions/features/features.h"
+#include "url/gurl.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/extensions/api/notifications/extension_notification_handler.h"
@@ -71,3 +72,10 @@ void NotificationDisplayService::ProcessNotificationOperation(
break;
}
}
+
+bool NotificationDisplayService::ShouldDisplayOverFullscreen(
+ const GURL& origin,
+ NotificationCommon::Type notification_type) {
+ NotificationHandler* handler = GetNotificationHandler(notification_type);
+ return handler->ShouldDisplayOnFullScreen(profile_, origin.spec());
Peter Beverloo 2017/06/13 22:56:41 DCHECK(handler)
Miguel Garcia 2017/06/14 09:39:38 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698