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

Unified Diff: sky/shell/java_service_provider.cc

Issue 962043002: Expose Android sensors to via Mojo services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Review comments Created 5 years, 10 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 | « sky/shell/BUILD.gn ('k') | sky/shell/org/domokit/sky/shell/JavaServiceProvider.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/java_service_provider.cc
diff --git a/sky/shell/java_service_provider.cc b/sky/shell/java_service_provider.cc
index 8973f2e2c14c58ed91f43ddf51e3490ade2fcbd5..4856a1b4985f1afe9db07674bcab4b5919cdcd6a 100644
--- a/sky/shell/java_service_provider.cc
+++ b/sky/shell/java_service_provider.cc
@@ -4,6 +4,7 @@
#include "sky/shell/java_service_provider.h"
+#include "base/android/jni_android.h"
#include "jni/JavaServiceProvider_jni.h"
namespace sky {
@@ -16,7 +17,8 @@ bool RegisterJavaServiceProvider(JNIEnv* env) {
mojo::ScopedMessagePipeHandle CreateJavaServiceProvider() {
JNIEnv* env = base::android::AttachCurrentThread();
return mojo::ScopedMessagePipeHandle(
- mojo::MessagePipeHandle(Java_JavaServiceProvider_create(env)));
+ mojo::MessagePipeHandle(Java_JavaServiceProvider_create(
+ env, base::android::GetApplicationContext())));
}
} // namespace shell
« no previous file with comments | « sky/shell/BUILD.gn ('k') | sky/shell/org/domokit/sky/shell/JavaServiceProvider.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698