Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: services/device/generic_sensor/platform_sensor_provider_mac.cc

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698