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

Unified Diff: device/sensors/data_fetcher_shared_memory_mac.cc

Issue 2674613003: git cl format //device/sensors (Closed)
Patch Set: git cl format //device/sensors Created 3 years, 10 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: device/sensors/data_fetcher_shared_memory_mac.cc
diff --git a/device/sensors/data_fetcher_shared_memory_mac.cc b/device/sensors/data_fetcher_shared_memory_mac.cc
index 1826068b7077df40e741b51aab3b48df55fa57b3..3d89ebfe106bec1746fdf4ed87100d06b164af76 100644
--- a/device/sensors/data_fetcher_shared_memory_mac.cc
+++ b/device/sensors/data_fetcher_shared_memory_mac.cc
@@ -97,9 +97,9 @@ void FetchOrientation(SuddenMotionSensor* sensor,
// At this point, DCHECKing is paranoia. Never hurts.
DCHECK_GE(beta, -180.0);
- DCHECK_LT(beta, 180.0);
+ DCHECK_LT(beta, 180.0);
DCHECK_GE(gamma, -90.0);
- DCHECK_LT(gamma, 90.0);
+ DCHECK_LT(gamma, 90.0);
buffer->seqlock.WriteBegin();
buffer->data.beta = beta;
@@ -110,11 +110,9 @@ void FetchOrientation(SuddenMotionSensor* sensor,
buffer->seqlock.WriteEnd();
}
-DataFetcherSharedMemory::DataFetcherSharedMemory() {
-}
+DataFetcherSharedMemory::DataFetcherSharedMemory() {}
-DataFetcherSharedMemory::~DataFetcherSharedMemory() {
-}
+DataFetcherSharedMemory::~DataFetcherSharedMemory() {}
void DataFetcherSharedMemory::Fetch(unsigned consumer_bitmask) {
DCHECK(GetPollingMessageLoop()->task_runner()->BelongsToCurrentThread());
@@ -147,7 +145,7 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
motion_buffer_ = static_cast<DeviceMotionHardwareBuffer*>(buffer);
UMA_HISTOGRAM_BOOLEAN("InertialSensor.MotionMacAvailable",
- sudden_motion_sensor_available);
+ sudden_motion_sensor_available);
if (!sudden_motion_sensor_available) {
// No motion sensor available, fire an all-null event.
motion_buffer_->seqlock.WriteBegin();
@@ -165,7 +163,7 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
orientation_buffer_ =
static_cast<DeviceOrientationHardwareBuffer*>(buffer);
UMA_HISTOGRAM_BOOLEAN("InertialSensor.OrientationMacAvailable",
- sudden_motion_sensor_available);
+ sudden_motion_sensor_available);
if (sudden_motion_sensor_available) {
// On Mac we cannot provide absolute orientation.
orientation_buffer_->seqlock.WriteBegin();

Powered by Google App Engine
This is Rietveld 408576698