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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/android/remoting_host_jni_onload.cc
diff --git a/remoting/host/android/remoting_host_jni_onload.cc b/remoting/host/android/remoting_host_jni_onload.cc
deleted file mode 100644
index 3f33c113a5a292df7a8c0751da605d14470b3366..0000000000000000000000000000000000000000
--- a/remoting/host/android/remoting_host_jni_onload.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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 "base/android/base_jni_onload.h"
-#include "base/android/base_jni_registrar.h"
-#include "base/android/jni_android.h"
-#include "base/android/jni_registrar.h"
-#include "base/bind.h"
-#include "base/macros.h"
-#include "net/android/net_jni_registrar.h"
-#include "remoting/host/android/remoting_host_jni_registrar.h"
-
-namespace {
-
-base::android::RegistrationMethod kRemotingRegisteredMethods[] = {
- {"base", base::android::RegisterJni},
- {"net", net::android::RegisterJni},
- {"remoting_host", remoting::RegisterJni},
-};
-
-bool RegisterJNI(JNIEnv* env) {
- return base::android::RegisterNativeMethods(
- env, kRemotingRegisteredMethods, arraysize(kRemotingRegisteredMethods));
-}
-
-} // namespace
-
-JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
- std::vector<base::android::RegisterCallback> register_callbacks;
- register_callbacks.push_back(base::Bind(&RegisterJNI));
- std::vector<base::android::InitCallback> init_callbacks;
- if (!base::android::OnJNIOnLoadRegisterJNI(vm, register_callbacks) ||
- !base::android::OnJNIOnLoadInit(init_callbacks)) {
- return -1;
- }
- return JNI_VERSION_1_4;
-}
« 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