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

Unified Diff: content/browser/device_sensors/device_inertial_sensor_service.h

Issue 285373002: Cleanup unused class/includes device(motion|orientation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tim's comments Created 6 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: content/browser/device_sensors/device_inertial_sensor_service.h
diff --git a/content/browser/device_sensors/device_inertial_sensor_service.h b/content/browser/device_sensors/device_inertial_sensor_service.h
index df1df0af2ec85f385100f600c6e355b5154d58b7..1d8cfd144974daf657dd2560f93742634bc6e59a 100644
--- a/content/browser/device_sensors/device_inertial_sensor_service.h
+++ b/content/browser/device_sensors/device_inertial_sensor_service.h
@@ -17,11 +17,10 @@
namespace content {
class DataFetcherSharedMemory;
-class RenderProcessHost;
-// Owns the DeviceMotionProvider (the background polling thread) and keeps
-// track of the number of consumers currently using the data (and pausing
-// the provider when not in use).
+// Owns the data fetcher for Device Motion and Orientation and keeps track of
+// the number of consumers currently using the data. The data fetcher is stopped
+// when there are no consumers.
class CONTENT_EXPORT DeviceInertialSensorService {
public:
// Returns the DeviceInertialSensorService singleton.
@@ -46,7 +45,7 @@ class CONTENT_EXPORT DeviceInertialSensorService {
// Injects a custom data fetcher for testing purposes. This class takes
// ownership of the injected object.
- void SetDataFetcherForTests(DataFetcherSharedMemory* test_data_fetcher);
+ void SetDataFetcherForTesting(DataFetcherSharedMemory* test_data_fetcher);
private:
friend struct DefaultSingletonTraits<DeviceInertialSensorService>;

Powered by Google App Engine
This is Rietveld 408576698