OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/generic_sensor/platform_sensor_provider_mac.h" | 5 #include "services/device/generic_sensor/platform_sensor_provider_mac.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "device/generic_sensor/platform_sensor_accelerometer_mac.h" | 8 #include "services/device/generic_sensor/platform_sensor_accelerometer_mac.h" |
9 #include "device/generic_sensor/platform_sensor_ambient_light_mac.h" | 9 #include "services/device/generic_sensor/platform_sensor_ambient_light_mac.h" |
10 | 10 |
11 namespace device { | 11 namespace device { |
12 | 12 |
13 // static | 13 // static |
14 PlatformSensorProviderMac* PlatformSensorProviderMac::GetInstance() { | 14 PlatformSensorProviderMac* PlatformSensorProviderMac::GetInstance() { |
15 return base::Singleton< | 15 return base::Singleton< |
16 PlatformSensorProviderMac, | 16 PlatformSensorProviderMac, |
17 base::LeakySingletonTraits<PlatformSensorProviderMac>>::get(); | 17 base::LeakySingletonTraits<PlatformSensorProviderMac>>::get(); |
18 } | 18 } |
19 | 19 |
(...skipping 18 matching lines...) Expand all Loading... |
38 std::move(mapping), this)); | 38 std::move(mapping), this)); |
39 break; | 39 break; |
40 } | 40 } |
41 default: | 41 default: |
42 NOTIMPLEMENTED(); | 42 NOTIMPLEMENTED(); |
43 callback.Run(nullptr); | 43 callback.Run(nullptr); |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 } // namespace device | 47 } // namespace device |
OLD | NEW |