diff options
Diffstat (limited to 'ash/system/date/tray_date.cc')
-rw-r--r-- | ash/system/date/tray_date.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc index fb1fffb..34edabb 100644 --- a/ash/system/date/tray_date.cc +++ b/ash/system/date/tray_date.cc @@ -4,6 +4,7 @@ #include "ash/system/date/tray_date.h" +#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/shell_delegate.h" #include "ash/system/date/date_view.h" @@ -89,7 +90,7 @@ class DateDefaultView : public views::View, view->AddButton(shutdown_); } - if (ash::Shell::GetInstance()->CanLockScreen()) { + if (ash::Shell::GetInstance()->session_state_delegate()->CanLockScreen()) { lock_ = new ash::internal::TrayPopupHeaderButton(this, IDR_AURA_UBER_TRAY_LOCKSCREEN, IDR_AURA_UBER_TRAY_LOCKSCREEN, |