Index: device/generic_sensor/platform_sensor_provider_android.cc |
diff --git a/device/generic_sensor/platform_sensor_provider_android.cc b/device/generic_sensor/platform_sensor_provider_android.cc |
index c9abbdf322f4d6cef106fb5db19f02705981acad..05a008a2cfb3982b1f2026e0cbb1cf9c5db4623e 100644 |
--- a/device/generic_sensor/platform_sensor_provider_android.cc |
+++ b/device/generic_sensor/platform_sensor_provider_android.cc |
@@ -36,10 +36,8 @@ |
ScopedJavaLocalRef<jobject> sensor = Java_PlatformSensorProvider_createSensor( |
env, j_object_.obj(), static_cast<jint>(type)); |
- if (!sensor.obj()) { |
+ if (!sensor.obj()) |
callback.Run(nullptr); |
- return; |
- } |
scoped_refptr<PlatformSensorAndroid> concrete_sensor = |
new PlatformSensorAndroid(type, std::move(mapping), this, sensor); |