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

Unified Diff: device/sensors/data_fetcher_shared_memory_win.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
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_mac.cc ('k') | device/sensors/device_sensor_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/data_fetcher_shared_memory_win.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_win.cc b/device/sensors/data_fetcher_shared_memory_win.cc
similarity index 98%
rename from content/browser/device_sensors/data_fetcher_shared_memory_win.cc
rename to device/sensors/data_fetcher_shared_memory_win.cc
index b2a6ad9f61d3782a617840cbbbabad7876c84b05..38e81dbe322722d78462fe4360745c70ba78fbb0 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_win.cc
+++ b/device/sensors/data_fetcher_shared_memory_win.cc
@@ -2,7 +2,7 @@
// 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 <GuidDef.h>
#include <InitGuid.h>
@@ -19,7 +19,7 @@ namespace {
const double kMeanGravity = 9.80665;
-void SetLightBuffer(content::DeviceLightHardwareBuffer* buffer, double lux) {
+void SetLightBuffer(device::DeviceLightHardwareBuffer* buffer, double lux) {
DCHECK(buffer);
buffer->seqlock.WriteBegin();
buffer->data.value = lux;
@@ -28,8 +28,7 @@ void SetLightBuffer(content::DeviceLightHardwareBuffer* buffer, double lux) {
} // namespace
-
-namespace content {
+namespace device {
class DataFetcherSharedMemory::SensorEventSink
: public ISensorEvents, public base::win::IUnknownImpl {
@@ -494,4 +493,4 @@ void DataFetcherSharedMemory::SetBufferAvailableState(
}
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_mac.cc ('k') | device/sensors/device_sensor_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698