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

Unified Diff: services/device/generic_sensor/platform_sensor_reader_linux.cc

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 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: services/device/generic_sensor/platform_sensor_reader_linux.cc
diff --git a/device/generic_sensor/platform_sensor_reader_linux.cc b/services/device/generic_sensor/platform_sensor_reader_linux.cc
similarity index 90%
rename from device/generic_sensor/platform_sensor_reader_linux.cc
rename to services/device/generic_sensor/platform_sensor_reader_linux.cc
index a814e878e27def5d101502dfce07c82952ec50d0..521d780a7660fa303ba3d92d069cb51f9eaee189 100644
--- a/device/generic_sensor/platform_sensor_reader_linux.cc
+++ b/services/device/generic_sensor/platform_sensor_reader_linux.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 "device/generic_sensor/platform_sensor_reader_linux.h"
+#include "services/device/generic_sensor/platform_sensor_reader_linux.h"
#include "base/files/file_util.h"
#include "base/memory/ptr_util.h"
@@ -11,9 +11,9 @@
#include "base/strings/string_util.h"
#include "base/threading/thread_restrictions.h"
#include "base/timer/timer.h"
-#include "device/generic_sensor/linux/sensor_data_linux.h"
-#include "device/generic_sensor/platform_sensor_linux.h"
-#include "device/generic_sensor/public/cpp/sensor_reading.h"
+#include "services/device/generic_sensor/linux/sensor_data_linux.h"
+#include "services/device/generic_sensor/platform_sensor_linux.h"
+#include "services/device/public/cpp/generic_sensor/sensor_reading.h"
namespace device {
@@ -86,10 +86,11 @@ void PollingSensorReader::InitializeTimer(
const PlatformSensorConfiguration& configuration) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
DCHECK(!is_reading_active_);
- timer_.Start(FROM_HERE, base::TimeDelta::FromMicroseconds(
- base::Time::kMicrosecondsPerSecond /
- configuration.frequency()),
- this, &PollingSensorReader::PollForData);
+ timer_.Start(
+ FROM_HERE,
+ base::TimeDelta::FromMicroseconds(base::Time::kMicrosecondsPerSecond /
+ configuration.frequency()),
+ this, &PollingSensorReader::PollForData);
is_reading_active_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698