Index: blimp/client/core/android/dummy_blimp_jni_registrar.cc |
diff --git a/blimp/client/core/android/dummy_blimp_jni_registrar.cc b/blimp/client/core/android/dummy_blimp_jni_registrar.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fff6174e81ef34936f0c5b8d64332079f25d5518 |
--- /dev/null |
+++ b/blimp/client/core/android/dummy_blimp_jni_registrar.cc |
@@ -0,0 +1,31 @@ |
+// Copyright 2016 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 "blimp/client/public/android/blimp_jni_registrar.h" |
+ |
+#include "base/android/jni_registrar.h" |
+#include "blimp/client/core/android/dummy_blimp_client_context_android.h" |
+ |
+namespace blimp { |
+namespace client { |
+namespace { |
+ |
+base::android::RegistrationMethod kBlimpRegistrationMethods[] = { |
+ {"DummyBlimpClientContextAndroid", |
+ DummyBlimpClientContextAndroid::RegisterJni}, |
+}; |
+ |
+} // namespace |
+ |
+// This method is declared in |
+// //blimp/client/public/android/blimp_jni_registrar.h, and either this function |
+// or the one in //blimp/client/core/android/blimp_jni_registrar.cc |
+// should be linked in to any binary blimp::client::RegisterBlimpJni. |
+bool RegisterBlimpJni(JNIEnv* env) { |
+ return base::android::RegisterNativeMethods( |
+ env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); |
+} |
+ |
+} // namespace client |
+} // namespace blimp |