1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ash / wm / tablet_mode / scoped_skip_user_session_blocked_check.cc [blame]
// Copyright 2017 The Chromium Authors
// 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