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

Unified Diff: services/device/android/register_jni.cc

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 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 | « services/device/BUILD.gn ('k') | services/device/device_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/device_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698