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

Unified Diff: ash/wm/system_modal_container_layout_manager.cc

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index 91066bac6728ea3d3354169e06b9ffea3fa72fb5..1312edaab934c2ff95c103cb8afa1dbff74120bb 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -8,6 +8,7 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shell_window_ids.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/wm/dim_window.h"
#include "ash/wm/window_util.h"
@@ -56,7 +57,7 @@ void SystemModalContainerLayoutManager::OnWindowAddedToLayout(
child->type() == ui::wm::WINDOW_TYPE_POPUP);
DCHECK(
container_->id() != kShellWindowId_LockSystemModalContainer ||
- Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked());
+ WmShell::Get()->GetSessionStateDelegate()->IsUserSessionBlocked());
// Since this is for SystemModal, there is no goodd reason to add
// these window other than MODAL_TYPE_NONE or MODAL_TYPE_SYSTEM.
// DCHECK to avoid simple mistake.

Powered by Google App Engine
This is Rietveld 408576698