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

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

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: compile 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/persistent_notification_handler.cc
diff --git a/chrome/browser/notifications/persistent_notification_handler.cc b/chrome/browser/notifications/persistent_notification_handler.cc
index 47cd8b17ed42e8bf8cf3198f8a34b0069e902eea..4af5d0abca276d9353a81ce9cd05d6972888297a 100644
--- a/chrome/browser/notifications/persistent_notification_handler.cc
+++ b/chrome/browser/notifications/persistent_notification_handler.cc
@@ -45,3 +45,9 @@ void PersistentNotificationHandler::OnClick(
void PersistentNotificationHandler::OpenSettings(Profile* profile) {
NotificationCommon::OpenNotificationSettings(profile);
}
+
+bool PersistentNotificationHandler::ShouldDisplayOnFullScreen(
+ Profile* profile,
+ const std::string& origin) const {
+ return NotificationCommon::ActiveTabIsFullScreen(profile, GURL(origin));
+}

Powered by Google App Engine
This is Rietveld 408576698