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

Unified Diff: ash/root_window_controller.cc

Issue 19945004: Modal window in user session not blocks user adding screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « no previous file | ash/root_window_controller_unittest.cc » ('j') | ash/session_state_delegate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 7039d56fee50c49e4b8da5a3cf5ecdd682fab72e..635ceba59248fb24428c040b12fe22b6ff301873 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -258,13 +258,9 @@ RootWindowController::GetSystemModalLayoutManager(aura::Window* window) {
container = GetContainer(kShellWindowId_SystemModalContainer);
}
} else {
- user::LoginStatus login = Shell::GetInstance()->system_tray_delegate() ?
- Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus() :
- user::LOGGED_IN_NONE;
- int modal_window_id = (login == user::LOGGED_IN_LOCKED ||
- login == user::LOGGED_IN_NONE) ?
- kShellWindowId_LockSystemModalContainer :
- kShellWindowId_SystemModalContainer;
+ int modal_window_id = Shell::GetInstance()->session_state_delegate()
+ ->IsUserSessionBlocked() ? kShellWindowId_LockSystemModalContainer :
+ kShellWindowId_SystemModalContainer;
container = GetContainer(modal_window_id);
}
return container ? static_cast<SystemModalContainerLayoutManager*>(
« no previous file with comments | « no previous file | ash/root_window_controller_unittest.cc » ('j') | ash/session_state_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698