Index: content/browser/device_sensors/device_inertial_sensor_service.cc |
diff --git a/content/browser/device_orientation/device_inertial_sensor_service.cc b/content/browser/device_sensors/device_inertial_sensor_service.cc |
similarity index 91% |
rename from content/browser/device_orientation/device_inertial_sensor_service.cc |
rename to content/browser/device_sensors/device_inertial_sensor_service.cc |
index cb8bbf300b29226ec269a152f31ad80239dc143b..ea301d79aecadda65d137291d2ac1a1ac25fce19 100644 |
--- a/content/browser/device_orientation/device_inertial_sensor_service.cc |
+++ b/content/browser/device_sensors/device_inertial_sensor_service.cc |
@@ -2,12 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/browser/device_orientation/device_inertial_sensor_service.h" |
+#include "content/browser/device_sensors/device_inertial_sensor_service.h" |
#include "base/bind.h" |
#include "base/logging.h" |
#include "base/memory/singleton.h" |
-#include "content/browser/device_orientation/data_fetcher_shared_memory.h" |
+#include "content/browser/device_sensors/data_fetcher_shared_memory.h" |
#include "content/public/browser/render_process_host.h" |
namespace content { |
@@ -54,11 +54,11 @@ bool DeviceInertialSensorService::ChangeNumberConsumers( |
switch (consumer_type) { |
case CONSUMER_TYPE_MOTION: |
num_motion_readers_ += delta; |
- DCHECK(num_motion_readers_ >= 0); |
+ DCHECK_GE(num_motion_readers_, 0); |
return true; |
case CONSUMER_TYPE_ORIENTATION: |
num_orientation_readers_ += delta; |
- DCHECK(num_orientation_readers_ >= 0); |
+ DCHECK_GE(num_orientation_readers_ , 0); |
return true; |
default: |
NOTREACHED(); |