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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.cc

Issue 2368343002: Revert auto-hide-invisible mode for ARC++ (Closed)
Patch Set: Revert "Use MD-ash's auto hide behavior for arc++ windows." Created 4 years, 3 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: chrome/browser/chromeos/login/lock/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.cc b/chrome/browser/chromeos/login/lock/screen_locker.cc
index 5bfe1214e47fb936d3d262504565bd25fc8a05f5..5b897a931da42912cc71ff07461e409cdc053e8f 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/screen_locker.cc
@@ -430,10 +430,8 @@ void ScreenLocker::Show() {
// visible while in fullscreen because the shelf makes it harder for a web
// page or app to mimick the lock screen.
ash::wm::WindowState* active_window_state = ash::wm::GetActiveWindowState();
-
if (active_window_state && active_window_state->IsFullscreen() &&
- active_window_state->shelf_mode_in_fullscreen() !=
- ash::wm::WindowState::SHELF_AUTO_HIDE_VISIBLE) {
+ active_window_state->hide_shelf_when_fullscreen()) {
const ash::wm::WMEvent event(ash::wm::WM_EVENT_TOGGLE_FULLSCREEN);
active_window_state->OnWMEvent(&event);
}

Powered by Google App Engine
This is Rietveld 408576698