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

Side by Side Diff: blimp/client/core/android/dummy_blimp_jni_registrar.cc

Issue 2194403003: blimp: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg3
Patch Set: blimp: Remove unneeded RegisterNatives() call Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « blimp/client/core/android/dummy_blimp_client_context_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/client/public/android/blimp_jni_registrar.h" 5 #include "blimp/client/public/android/blimp_jni_registrar.h"
6 6
7 #include "base/android/jni_registrar.h" 7 #include "base/android/jni_registrar.h"
8 #include "blimp/client/core/android/dummy_blimp_client_context_android.h"
9 8
10 namespace blimp { 9 namespace blimp {
11 namespace client { 10 namespace client {
12 namespace {
13
14 base::android::RegistrationMethod kBlimpRegistrationMethods[] = {
15 {"DummyBlimpClientContextAndroid",
16 DummyBlimpClientContextAndroid::RegisterJni},
17 };
18
19 } // namespace
20 11
21 // This method is declared in 12 // This method is declared in
22 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function 13 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function
23 // or the one in //blimp/client/core/android/blimp_jni_registrar.cc 14 // or the one in //blimp/client/core/android/blimp_jni_registrar.cc
24 // should be linked in to any binary blimp::client::RegisterBlimpJni. 15 // should be linked in to any binary blimp::client::RegisterBlimpJni.
25 bool RegisterBlimpJni(JNIEnv* env) { 16 bool RegisterBlimpJni(JNIEnv* env) {
26 return base::android::RegisterNativeMethods( 17 return true;
27 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods));
28 } 18 }
29 19
30 } // namespace client 20 } // namespace client
31 } // namespace blimp 21 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/android/dummy_blimp_client_context_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698