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

Unified Diff: device/sensors/data_fetcher_shared_memory_default.cc

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase Created 3 years, 11 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_default.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_default.cc b/device/sensors/data_fetcher_shared_memory_default.cc
similarity index 89%
rename from content/browser/device_sensors/data_fetcher_shared_memory_default.cc
rename to device/sensors/data_fetcher_shared_memory_default.cc
index 9e8dc3de3a9b501419fb71f6212247c49100f08f..d6dd665af68c190763cbc6694481ee7967f64260 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_default.cc
+++ b/device/sensors/data_fetcher_shared_memory_default.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/device_sensors/data_fetcher_shared_memory.h"
+#include "device/sensors/data_fetcher_shared_memory.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
namespace {
-bool SetMotionBuffer(content::DeviceMotionHardwareBuffer* buffer,
+bool SetMotionBuffer(device::DeviceMotionHardwareBuffer* buffer,
bool enabled) {
if (!buffer)
return false;
@@ -20,7 +20,7 @@ bool SetMotionBuffer(content::DeviceMotionHardwareBuffer* buffer,
}
bool SetOrientationBuffer(
- content::DeviceOrientationHardwareBuffer* buffer, bool enabled) {
+ device::DeviceOrientationHardwareBuffer* buffer, bool enabled) {
if (!buffer)
return false;
buffer->seqlock.WriteBegin();
@@ -29,7 +29,7 @@ bool SetOrientationBuffer(
return true;
}
-bool SetLightBuffer(content::DeviceLightHardwareBuffer* buffer,
+bool SetLightBuffer(device::DeviceLightHardwareBuffer* buffer,
double lux) {
if (!buffer)
return false;
@@ -41,7 +41,7 @@ bool SetLightBuffer(content::DeviceLightHardwareBuffer* buffer,
} // namespace
-namespace content {
+namespace device {
DataFetcherSharedMemory::DataFetcherSharedMemory() {}
@@ -92,4 +92,4 @@ bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) {
return false;
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_chromeos.cc ('k') | device/sensors/data_fetcher_shared_memory_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698