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

Unified Diff: device/generic_sensor/platform_sensor.cc

Issue 2332903002: [sensors] [mac] Implement ambient light sensor for macOS (Closed)
Patch Set: Created 4 years, 3 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/generic_sensor/platform_sensor.cc
diff --git a/device/generic_sensor/platform_sensor.cc b/device/generic_sensor/platform_sensor.cc
index c982d7713d8b554ee30ce0d551c0fbeff67b3927..0025224c9cf0f0af220049d5ca90bcd635f42fd4 100644
--- a/device/generic_sensor/platform_sensor.cc
+++ b/device/generic_sensor/platform_sensor.cc
@@ -15,8 +15,8 @@ PlatformSensor::PlatformSensor(mojom::SensorType type,
mojo::ScopedSharedBufferMapping mapping,
PlatformSensorProvider* provider)
: shared_buffer_mapping_(std::move(mapping)),
- type_(type),
provider_(provider),
+ type_(type),
weak_factory_(this) {}
PlatformSensor::~PlatformSensor() {

Powered by Google App Engine
This is Rietveld 408576698