blob: 49e6c74fb2f6a1bd383a93952148ccd08e3e7df6 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/tablet_mode/scoped_skip_user_session_blocked_check.h"
#include "ash/shell.h"
#include "ash/wm/event_client_impl.h"
namespace ash {
ScopedSkipUserSessionBlockedCheck::ScopedSkipUserSessionBlockedCheck() {
if (Shell::Get()->event_client())
Shell::Get()->event_client()->set_skip_user_session_blocked_check(true);
}
ScopedSkipUserSessionBlockedCheck::~ScopedSkipUserSessionBlockedCheck() {
if (Shell::Get()->event_client())
Shell::Get()->event_client()->set_skip_user_session_blocked_check(false);
}
} // namespace ash