Fix emulator build error
[platform/framework/web/chromium-efl.git] / services / device / binder_overrides.cc
1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/device/binder_overrides.h"
6
7 #include "base/no_destructor.h"
8 #include "build/build_config.h"
9
10 namespace device {
11 namespace internal {
12
13 GeolocationContextBinder& GetGeolocationContextBinderOverride() {
14   static base::NoDestructor<GeolocationContextBinder> binder;
15   return *binder;
16 }
17
18 PressureManagerBinder& GetPressureManagerBinderOverride() {
19   static base::NoDestructor<PressureManagerBinder> binder;
20   return *binder;
21 }
22
23 #if BUILDFLAG(IS_ANDROID)
24 NFCProviderBinder& GetNFCProviderBinderOverride() {
25   static base::NoDestructor<NFCProviderBinder> binder;
26   return *binder;
27 }
28 #endif
29
30 }  // namespace internal
31 }  // namespace device