Index: services/device/android/register_jni.cc |
diff --git a/services/device/android/register_jni.cc b/services/device/android/register_jni.cc |
index 345a8699e79c2e501e797720985e6f9863839f3d..041dfdf340d9a3833147c60f37b2085f3c326653 100644 |
--- a/services/device/android/register_jni.cc |
+++ b/services/device/android/register_jni.cc |
@@ -5,6 +5,7 @@ |
#include "services/device/android/register_jni.h" |
#include "base/android/jni_android.h" |
+#include "services/device/generic_sensor/android/sensors_jni_registrar.h" |
#include "services/device/time_zone_monitor/android/time_zone_monitor_jni_registrar.h" |
namespace device { |
@@ -15,6 +16,9 @@ bool EnsureJniRegistered() { |
if (!g_jni_init_done) { |
JNIEnv* env = base::android::AttachCurrentThread(); |
+ if (!android::RegisterSensorsJni(env)) |
+ return false; |
+ |
if (!android::RegisterTimeZoneMonitorJni(env)) |
return false; |