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

Unified Diff: ash/common/system/tiles/tiles_default_view.cc

Issue 2734933004: ash: Use SessionController instead of SessionStateDelegate (Closed)
Patch Set: rebase Created 3 years, 9 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
Index: ash/common/system/tiles/tiles_default_view.cc
diff --git a/ash/common/system/tiles/tiles_default_view.cc b/ash/common/system/tiles/tiles_default_view.cc
index cdf7bf8fc658dd4bb2dd2afdc3cdd31e37a2a3d4..f403e283a61a8a0be60de59c0405662d30fa6769 100644
--- a/ash/common/system/tiles/tiles_default_view.cc
+++ b/ash/common/system/tiles/tiles_default_view.cc
@@ -5,7 +5,7 @@
#include "ash/common/system/tiles/tiles_default_view.h"
#include "ash/common/metrics/user_metrics_action.h"
-#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/session/session_controller.h"
#include "ash/common/shutdown_controller.h"
#include "ash/common/system/tray/system_menu_button.h"
#include "ash/common/system/tray/system_tray.h"
@@ -89,7 +89,7 @@ void TilesDefaultView::Init() {
lock_button_ =
new SystemMenuButton(this, TrayPopupInkDropStyle::HOST_CENTERED,
kSystemMenuLockIcon, IDS_ASH_STATUS_TRAY_LOCK);
- if (disable_buttons || !shell->GetSessionStateDelegate()->CanLockScreen())
+ if (disable_buttons || !shell->session_controller()->CanLockScreen())
lock_button_->SetEnabled(false);
AddChildView(lock_button_);

Powered by Google App Engine
This is Rietveld 408576698