1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
content / browser / screenlock_monitor / screenlock_monitor_device_source.cc [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/screenlock_monitor/screenlock_monitor_device_source.h"
#include "build/build_config.h"
namespace content {
ScreenlockMonitorDeviceSource::ScreenlockMonitorDeviceSource() {
#if BUILDFLAG(IS_MAC)
StartListeningForScreenlock();
#endif // BUILDFLAG(IS_MAC)
}
ScreenlockMonitorDeviceSource::~ScreenlockMonitorDeviceSource() {
#if BUILDFLAG(IS_MAC)
StopListeningForScreenlock();
#endif // BUILDFLAG(IS_MAC)
}
} // namespace content