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 |