| Index: content/renderer/device_sensors/device_sensor_event_pump.cc
|
| diff --git a/content/renderer/device_orientation/device_sensor_event_pump.cc b/content/renderer/device_sensors/device_sensor_event_pump.cc
|
| similarity index 95%
|
| rename from content/renderer/device_orientation/device_sensor_event_pump.cc
|
| rename to content/renderer/device_sensors/device_sensor_event_pump.cc
|
| index 8e82d8f5825db2a6806a811a655831daf76fbb4d..31d1b5f6f80aa8e99891442fee0603bcc75f4357 100644
|
| --- a/content/renderer/device_orientation/device_sensor_event_pump.cc
|
| +++ b/content/renderer/device_sensors/device_sensor_event_pump.cc
|
| @@ -11,7 +11,7 @@ namespace content {
|
|
|
| // Default interval between successive polls, should take into account the
|
| // value of |kInertialSensorIntervalMillis| in
|
| -// content/browser/device_orientation/inertial_sensor_consts.h.
|
| +// content/browser/device_sensors/inertial_sensor_consts.h.
|
| const int DeviceSensorEventPump::kDefaultPumpDelayMillis = 50;
|
|
|
| int DeviceSensorEventPump::GetDelayMillis() const {
|
| @@ -26,7 +26,7 @@ DeviceSensorEventPump::DeviceSensorEventPump()
|
| DeviceSensorEventPump::DeviceSensorEventPump(int pump_delay_millis)
|
| : pump_delay_millis_(pump_delay_millis),
|
| state_(STOPPED) {
|
| - DCHECK(pump_delay_millis_ > 0);
|
| + DCHECK_GE(pump_delay_millis_, 0);
|
| }
|
|
|
| DeviceSensorEventPump::~DeviceSensorEventPump() {
|
|
|