| Index: device/sensors/ambient_light_mac.cc
|
| diff --git a/content/browser/device_sensors/ambient_light_mac.cc b/device/sensors/ambient_light_mac.cc
|
| similarity index 95%
|
| rename from content/browser/device_sensors/ambient_light_mac.cc
|
| rename to device/sensors/ambient_light_mac.cc
|
| index c6606791bd35ef399d186bc46e84c336f61f51a4..c9f36f5de17d001620b8180ba8ba3b91ea030b8d 100644
|
| --- a/content/browser/device_sensors/ambient_light_mac.cc
|
| +++ b/device/sensors/ambient_light_mac.cc
|
| @@ -4,14 +4,14 @@
|
|
|
| // This file is based on http://osxbook.com/book/bonus/chapter10/light/
|
|
|
| -#include "content/browser/device_sensors/ambient_light_mac.h"
|
| +#include "device/sensors/ambient_light_mac.h"
|
|
|
| #include <utility>
|
|
|
| #include "base/mac/scoped_cftyperef.h"
|
| #include "base/mac/scoped_ioobject.h"
|
|
|
| -namespace content {
|
| +namespace device {
|
|
|
| namespace {
|
| enum LmuFunctionIndex {
|
| @@ -33,8 +33,7 @@ AmbientLightSensor::~AmbientLightSensor() {
|
| IOServiceClose(io_connection_);
|
| }
|
|
|
| -AmbientLightSensor::AmbientLightSensor() : io_connection_(IO_OBJECT_NULL) {
|
| -}
|
| +AmbientLightSensor::AmbientLightSensor() : io_connection_(IO_OBJECT_NULL) {}
|
|
|
| bool AmbientLightSensor::Init() {
|
| // Tested and verified by riju that the following call works on
|
| @@ -77,4 +76,4 @@ bool AmbientLightSensor::ReadSensorValue(uint64_t lux_values[2]) {
|
| return kr == KERN_SUCCESS;
|
| }
|
|
|
| -} // namespace content
|
| +} // namespace device
|
|
|