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

Unified Diff: content/browser/device_sensors/device_inertial_sensor_service.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/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();

Powered by Google App Engine
This is Rietveld 408576698