Index: content/browser/mojo/service_registrar_android.cc |
diff --git a/content/browser/mojo/service_registrar_android.cc b/content/browser/mojo/service_registrar_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..768312eff998d0aef88d8973d5fe36c70d106bd2 |
--- /dev/null |
+++ b/content/browser/mojo/service_registrar_android.cc |
@@ -0,0 +1,26 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/mojo/service_registrar_android.h" |
+ |
+#include "base/android/jni_android.h" |
+#include "content/browser/mojo/service_registry_android.h" |
+#include "jni/ServiceRegistrar_jni.h" |
+ |
+namespace content { |
+ |
+// static |
+bool ServiceRegistrarAndroid::Register(JNIEnv* env) { |
+ return RegisterNativesImpl(env); |
+} |
+ |
+// static |
+void ServiceRegistrarAndroid::RegisterProcessHostServices( |
+ ServiceRegistryAndroid* registry) { |
+ JNIEnv* env = base::android::AttachCurrentThread(); |
+ Java_ServiceRegistrar_registerProcessHostServices(env, |
+ registry->GetObj().obj()); |
+} |
+ |
+} // namespace content |