| Index: chrome/browser/notifications/fullscreen_notification_blocker.cc
|
| diff --git a/chrome/browser/notifications/fullscreen_notification_blocker.cc b/chrome/browser/notifications/fullscreen_notification_blocker.cc
|
| index 0d5b350dff4284fa3261cc19d46974585d740f11..9a50558dbff9349e3834dbccfa17926e0cee23fa 100644
|
| --- a/chrome/browser/notifications/fullscreen_notification_blocker.cc
|
| +++ b/chrome/browser/notifications/fullscreen_notification_blocker.cc
|
| @@ -33,10 +33,14 @@ bool DoesFullscreenModeBlockNotifications() {
|
| const aura::Window* fullscreen_window =
|
| controller->GetTopmostFullscreenWindow();
|
|
|
| - // Should appear notifications if kFullscreenUsesMinimalChromeKey is set,
|
| - // since shelf/message_center UI is visible in such situation.
|
| - return fullscreen_window && !fullscreen_window->GetProperty(
|
| - ash::internal::kFullscreenUsesMinimalChromeKey);
|
| + // Notifications should appear if kFullscreenTypeKey is
|
| + // ash::wm::FULLSCREEN_TYPE_IMMERSIVE_MINIMAL_CHROME because the shelf and
|
| + // message center UI are visible in this case.
|
| + if (!fullscreen_window)
|
| + return false;
|
| + ash::wm::FullscreenType fullscreen_type = fullscreen_window->GetProperty(
|
| + ash::internal::kFullscreenTypeKey);
|
| + return fullscreen_type != ash::wm::FULLSCREEN_TYPE_IMMERSIVE_MINIMAL_CHROME;
|
| }
|
| #endif
|
|
|
|
|