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

Unified Diff: content/renderer/device_sensors/device_sensor_event_pump.cc

Issue 236833003: Rename device_orientation to device_sensors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « content/renderer/device_sensors/device_sensor_event_pump.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698