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

Unified Diff: ash/wm/system_modal_container_layout_manager.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback Created 3 years, 8 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
« no previous file with comments | « ash/wm/switchable_windows.cc ('k') | ash/wm/window_positioning_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d76a045bf7045b2fc0b054f6214ec79a97869a6a..1a2d65902e38b9fd5c8b8ccc387f8594eb686182 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -81,7 +81,7 @@ void SystemModalContainerLayoutManager::OnWindowAddedToLayout(WmWindow* child) {
// TODO(mash): IsUserSessionBlocked() depends on knowing the login state. We
// need a non-stub version of SessionStateDelegate. crbug.com/648964
if (Shell::GetAshConfig() != Config::MASH) {
- DCHECK(container_->GetShellWindowId() !=
+ DCHECK(container_->aura_window()->id() !=
kShellWindowId_LockSystemModalContainer ||
Shell::Get()->session_controller()->IsUserSessionBlocked());
}
@@ -184,7 +184,7 @@ void SystemModalContainerLayoutManager::DestroyModalBackground() {
// static
bool SystemModalContainerLayoutManager::IsModalBackground(WmWindow* window) {
- int id = window->GetParent()->GetShellWindowId();
+ int id = window->GetParent()->aura_window()->id();
if (id != kShellWindowId_SystemModalContainer &&
id != kShellWindowId_LockSystemModalContainer)
return false;
« no previous file with comments | « ash/wm/switchable_windows.cc ('k') | ash/wm/window_positioning_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698