Index: ash/system/web_notification/web_notification_tray.cc |
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc |
index e8c9e70bc73f43388104dcc6546d6b0ba0f2b15a..5c102cc3f42bde44937df7f2c139fe4bda86603f 100644 |
--- a/ash/system/web_notification/web_notification_tray.cc |
+++ b/ash/system/web_notification/web_notification_tray.cc |
@@ -302,9 +302,8 @@ void WebNotificationTray::HidePopups() { |
// Private methods. |
bool WebNotificationTray::ShouldShowMessageCenter() { |
- return status_area_widget()->login_status() != user::LOGGED_IN_LOCKED && |
- !(status_area_widget()->system_tray() && |
- status_area_widget()->system_tray()->HasNotificationBubble()); |
+ return !(status_area_widget()->system_tray() && |
+ status_area_widget()->system_tray()->HasNotificationBubble()); |
} |
bool WebNotificationTray::ShouldBlockShelfAutoHide() const { |
@@ -327,6 +326,7 @@ void WebNotificationTray::ShowMessageCenterBubble() { |
void WebNotificationTray::UpdateAfterLoginStatusChange( |
user::LoginStatus login_status) { |
+ message_center()->SetLockedState(login_status == user::LOGGED_IN_LOCKED); |
OnMessageCenterTrayChanged(); |
} |
@@ -409,8 +409,7 @@ bool WebNotificationTray::IsContextMenuEnabled() const { |
->session_state_delegate() |
->IsInSecondaryLoginScreen(); |
- return login_status != user::LOGGED_IN_NONE |
- && login_status != user::LOGGED_IN_LOCKED && !userAddingRunning; |
+ return login_status != user::LOGGED_IN_NONE && !userAddingRunning; |
} |
message_center::MessageCenterTray* WebNotificationTray::GetMessageCenterTray() { |
@@ -478,7 +477,6 @@ void WebNotificationTray::UpdateTrayContent() { |
->IsInSecondaryLoginScreen(); |
SetVisible((status_area_widget()->login_status() != user::LOGGED_IN_NONE) && |
- (status_area_widget()->login_status() != user::LOGGED_IN_LOCKED) && |
!userAddingRunning); |
Layout(); |
SchedulePaint(); |