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

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

Issue 1994013002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to latest behavior Created 4 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
« no previous file with comments | « no previous file | content/browser/device_sensors/data_fetcher_shared_memory_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/data_fetcher_shared_memory.h
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory.h b/content/browser/device_sensors/data_fetcher_shared_memory.h
index 1999bab80d62668403807a0558450352d3d4fe8a..85afac4b30d48ea8d40e630abfd0086cc3a3042b 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory.h
+++ b/content/browser/device_sensors/data_fetcher_shared_memory.h
@@ -45,11 +45,13 @@ class CONTENT_EXPORT DataFetcherSharedMemory
bool Start(ConsumerType consumer_type, void* buffer) override;
bool Stop(ConsumerType consumer_type) override;
-#if !defined(OS_ANDROID)
- DeviceMotionHardwareBuffer* motion_buffer_;
- DeviceOrientationHardwareBuffer* orientation_buffer_;
- DeviceOrientationHardwareBuffer* orientation_absolute_buffer_;
- DeviceLightHardwareBuffer* light_buffer_;
+#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN)
+#if !defined(OS_CHROMEOS)
+ DeviceMotionHardwareBuffer* motion_buffer_ = nullptr;
+ DeviceOrientationHardwareBuffer* orientation_buffer_ = nullptr;
+ DeviceLightHardwareBuffer* light_buffer_ = nullptr;
+#endif
+ DeviceOrientationHardwareBuffer* orientation_absolute_buffer_ = nullptr;
#endif
#if defined(OS_CHROMEOS)
« no previous file with comments | « no previous file | content/browser/device_sensors/data_fetcher_shared_memory_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698