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

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory_base.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/data_fetcher_shared_memory_base.cc
diff --git a/content/browser/device_orientation/data_fetcher_shared_memory_base.cc b/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
similarity index 95%
rename from content/browser/device_orientation/data_fetcher_shared_memory_base.cc
rename to content/browser/device_sensors/data_fetcher_shared_memory_base.cc
index 690d1f8aa7f83e3b83369312efa102632434c837..77163170e9c0ae42311ad8115304f633a755df3b 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory_base.cc
+++ b/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
@@ -2,15 +2,15 @@
// 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/data_fetcher_shared_memory_base.h"
+#include "content/browser/device_sensors/data_fetcher_shared_memory_base.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/threading/thread.h"
#include "base/timer/timer.h"
-#include "content/common/device_orientation/device_motion_hardware_buffer.h"
-#include "content/common/device_orientation/device_orientation_hardware_buffer.h"
+#include "content/common/device_sensors/device_motion_hardware_buffer.h"
+#include "content/common/device_sensors/device_orientation_hardware_buffer.h"
namespace content {
@@ -28,7 +28,7 @@ static size_t GetConsumerSharedMemoryBufferSize(ConsumerType consumer_type) {
return 0;
}
-}
+} // namespace
class DataFetcherSharedMemoryBase::PollingThread : public base::Thread {
public:
@@ -42,7 +42,6 @@ class DataFetcherSharedMemoryBase::PollingThread : public base::Thread {
bool IsTimerRunning() const { return timer_ ? timer_->IsRunning() : false; }
private:
-
void DoPoll();
unsigned consumers_bitmask_;
@@ -89,7 +88,7 @@ void DataFetcherSharedMemoryBase::PollingThread::RemoveConsumer(
consumers_bitmask_ ^= consumer_type;
if (!consumers_bitmask_)
- timer_.reset(); // will also stop the timer.
+ timer_.reset(); // will also stop the timer.
}
void DataFetcherSharedMemoryBase::PollingThread::DoPoll() {

Powered by Google App Engine
This is Rietveld 408576698