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

Side by Side Diff: remoting/host/android/remoting_host_jni_onload.cc

Issue 2358083003: [remoting android] Remove host It2Me implementation. (Closed)
Patch Set: Update remoting/host/it2me/ Created 4 years, 3 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 | « remoting/host/android/jni_host.cc ('k') | remoting/host/android/remoting_host_jni_registrar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/android/base_jni_onload.h"
6 #include "base/android/base_jni_registrar.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "base/bind.h"
10 #include "base/macros.h"
11 #include "net/android/net_jni_registrar.h"
12 #include "remoting/host/android/remoting_host_jni_registrar.h"
13
14 namespace {
15
16 base::android::RegistrationMethod kRemotingRegisteredMethods[] = {
17 {"base", base::android::RegisterJni},
18 {"net", net::android::RegisterJni},
19 {"remoting_host", remoting::RegisterJni},
20 };
21
22 bool RegisterJNI(JNIEnv* env) {
23 return base::android::RegisterNativeMethods(
24 env, kRemotingRegisteredMethods, arraysize(kRemotingRegisteredMethods));
25 }
26
27 } // namespace
28
29 JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
30 std::vector<base::android::RegisterCallback> register_callbacks;
31 register_callbacks.push_back(base::Bind(&RegisterJNI));
32 std::vector<base::android::InitCallback> init_callbacks;
33 if (!base::android::OnJNIOnLoadRegisterJNI(vm, register_callbacks) ||
34 !base::android::OnJNIOnLoadInit(init_callbacks)) {
35 return -1;
36 }
37 return JNI_VERSION_1_4;
38 }
OLDNEW
« no previous file with comments | « remoting/host/android/jni_host.cc ('k') | remoting/host/android/remoting_host_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698