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

Unified Diff: components/devtools_bridge/test/android/javatests/jni/jni_onload.cc

Issue 1142463003: Remove devtools_bridge component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: components/devtools_bridge/test/android/javatests/jni/jni_onload.cc
diff --git a/components/devtools_bridge/test/android/javatests/jni/jni_onload.cc b/components/devtools_bridge/test/android/javatests/jni/jni_onload.cc
deleted file mode 100644
index 4238dec4240e347b93e445377f8fb1d240457361..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/test/android/javatests/jni/jni_onload.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 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/bind.h"
-#include "components/devtools_bridge/android/apiary_client_factory.h"
-#include "components/devtools_bridge/android/session_dependency_factory_android.h"
-
-namespace {
-
-using namespace devtools_bridge::android;
-
-bool RegisterJNI(JNIEnv* env) {
- return base::android::RegisterJni(env) &&
- SessionDependencyFactoryAndroid::RegisterNatives(env) &&
- ApiaryClientFactory::RegisterNatives(env);
-}
-
-bool Init() {
- return devtools_bridge::SessionDependencyFactory::InitializeSSL();
-}
-
-} // namespace
-
-JNI_EXPORT 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;
- init_callbacks.push_back(base::Bind(&Init));
- if (!base::android::OnJNIOnLoadRegisterJNI(vm, register_callbacks) ||
- !base::android::OnJNIOnLoadInit(init_callbacks)) {
- return -1;
- }
- return JNI_VERSION_1_4;
-}

Powered by Google App Engine
This is Rietveld 408576698