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

Unified Diff: device/generic_sensor/platform_sensor_provider_android.cc

Issue 2953263002: Revert of Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: Created 3 years, 6 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 | « device/generic_sensor/DEPS ('k') | device/generic_sensor/sensor_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « device/generic_sensor/DEPS ('k') | device/generic_sensor/sensor_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698