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

Unified Diff: ash/common/system/web_notification/web_notification_tray.cc

Issue 2151613002: Revert "Hide web notification tray when LoginStatus is locked" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/web_notification/web_notification_tray.cc
diff --git a/ash/common/system/web_notification/web_notification_tray.cc b/ash/common/system/web_notification/web_notification_tray.cc
index 787c46e05a20a95089516f1ab861fcb40bcea7f9..559315152a255131592dc7ca3497b877e01975ec 100644
--- a/ash/common/system/web_notification/web_notification_tray.cc
+++ b/ash/common/system/web_notification/web_notification_tray.cc
@@ -516,9 +516,8 @@ message_center::MessageCenter* WebNotificationTray::message_center() const {
bool WebNotificationTray::IsLoggedIn() const {
WmShell* shell = WmShell::Get();
- LoginStatus status = shell->system_tray_delegate()->GetUserLoginStatus();
- return status != LoginStatus::NOT_LOGGED_IN &&
- status != LoginStatus::LOCKED &&
+ return shell->system_tray_delegate()->GetUserLoginStatus() !=
+ LoginStatus::NOT_LOGGED_IN &&
!shell->GetSessionStateDelegate()->IsInSecondaryLoginScreen();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698