Index: ash/system/date/tray_date.cc |
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc |
index fb1fffb5557caa96166bab3ee0c96c6bb2a6b0d5..34edabbe869188f84f3b28a019da9e9db8c1d68f 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, |