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

Unified Diff: trunk/src/ash/wm/system_modal_container_layout_manager.cc

Issue 14200034: Revert 194578 "Add ash SessionStateDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/ash/wm/system_modal_container_layout_manager.cc
===================================================================
--- trunk/src/ash/wm/system_modal_container_layout_manager.cc (revision 194588)
+++ trunk/src/ash/wm/system_modal_container_layout_manager.cc (working copy)
@@ -4,8 +4,8 @@
#include "ash/wm/system_modal_container_layout_manager.h"
-#include "ash/session_state_delegate.h"
#include "ash/shell.h"
+#include "ash/shell_delegate.h"
#include "ash/shell_window_ids.h"
#include "ash/wm/system_modal_container_event_filter.h"
#include "ash/wm/window_animations.h"
@@ -67,9 +67,8 @@
child->type() == aura::client::WINDOW_TYPE_POPUP);
DCHECK(
container_->id() != internal::kShellWindowId_LockSystemModalContainer ||
- Shell::GetInstance()->session_state_delegate()->IsScreenLocked() ||
- !Shell::GetInstance()->session_state_delegate()->
- IsActiveUserSessionStarted());
+ Shell::GetInstance()->delegate()->IsScreenLocked() ||
+ !Shell::GetInstance()->delegate()->IsSessionStarted());
child->AddObserver(this);
if (child->GetProperty(aura::client::kModalKey) != ui::MODAL_TYPE_NONE)
@@ -139,7 +138,7 @@
return true;
// This container can not handle events if the screen is locked and it is not
// above the lock screen layer (crbug.com/110920).
- if (Shell::GetInstance()->session_state_delegate()->IsScreenLocked() &&
+ if (ash::Shell::GetInstance()->IsScreenLocked() &&
container_->id() < ash::internal::kShellWindowId_LockScreenContainer)
return true;
return wm::GetActivatableWindow(window) == modal_window();
« no previous file with comments | « trunk/src/ash/wm/stacking_controller.cc ('k') | trunk/src/ash/wm/system_modal_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698