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

Side by Side Diff: remoting/client/jni/remoting_jni_registrar.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 5
6 #include "remoting/client/jni/remoting_jni_registrar.h" 6 #include "remoting/client/jni/remoting_jni_registrar.h"
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_registrar.h" 9 #include "base/android/jni_registrar.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "remoting/client/jni/chromoting_jni_runtime.h" 11 #include "remoting/client/jni/chromoting_jni_runtime.h"
12 #include "remoting/client/jni/jni_client.h" 12 #include "remoting/client/jni/jni_client.h"
13 #include "remoting/client/jni/jni_display_handler.h" 13 #include "remoting/client/jni/jni_display_handler.h"
14 #include "remoting/client/jni/jni_touch_event_data.h"
15 14
16 namespace remoting { 15 namespace remoting {
17 16
18 namespace { 17 namespace {
19 const base::android::RegistrationMethod kRemotingRegisteredMethods[] = { 18 const base::android::RegistrationMethod kRemotingRegisteredMethods[] = {
20 {"JniClient", JniClient::RegisterJni}, 19 {"JniClient", JniClient::RegisterJni},
21 {"ChromotingJniRuntime", RegisterChromotingJniRuntime}, 20 {"ChromotingJniRuntime", RegisterChromotingJniRuntime},
22 {"JniTouchEventData", JniTouchEventData::RegisterJni},
23 {"JniDisplayHandler", JniDisplayHandler::RegisterJni} 21 {"JniDisplayHandler", JniDisplayHandler::RegisterJni}
24 }; 22 };
25 } // namespace 23 } // namespace
26 24
27 bool RegisterJni(JNIEnv* env) { 25 bool RegisterJni(JNIEnv* env) {
28 return RegisterNativeMethods(env, kRemotingRegisteredMethods, 26 return RegisterNativeMethods(env, kRemotingRegisteredMethods,
29 arraysize(kRemotingRegisteredMethods)); 27 arraysize(kRemotingRegisteredMethods));
30 } 28 }
31 29
32 } // namespace remoting 30 } // namespace remoting
OLDNEW
« net/android/traffic_stats.h ('K') | « remoting/client/jni/jni_touch_event_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698