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

Unified Diff: blimp/client/app/android/blimp_library_loader.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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: blimp/client/app/android/blimp_library_loader.cc
diff --git a/blimp/client/app/android/blimp_library_loader.cc b/blimp/client/app/android/blimp_library_loader.cc
deleted file mode 100644
index 6f1f80133ba81a559d992eb9feaa7817a68bd6a4..0000000000000000000000000000000000000000
--- a/blimp/client/app/android/blimp_library_loader.cc
+++ /dev/null
@@ -1,92 +0,0 @@
-// Copyright 2015 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 "blimp/client/app/android/blimp_library_loader.h"
-
-#include <vector>
-
-#include "base/android/base_jni_onload.h"
-#include "base/android/base_jni_registrar.h"
-#include "base/android/jni_android.h"
-#include "base/android/library_loader/library_loader_hooks.h"
-#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
-#include "blimp/client/app/android/blimp_app_jni_registrar.h"
-#include "blimp/client/app/blimp_startup.h"
-#include "blimp/client/public/android/blimp_jni_registrar.h"
-#include "jni/BlimpLibraryLoader_jni.h"
-#include "net/android/net_jni_registrar.h"
-#include "ui/android/ui_android_jni_registrar.h"
-#include "ui/gl/gl_surface.h"
-
-namespace {
-
-bool OnLibrariesLoaded(JNIEnv* env, jclass clazz) {
- blimp::client::InitializeLogging();
- return true;
-}
-
-bool OnJniInitializationComplete() {
- base::android::SetLibraryLoadedHook(&OnLibrariesLoaded);
- return true;
-}
-
-bool RegisterJni(JNIEnv* env) {
- if (!base::android::RegisterJni(env))
- return false;
-
- if (!net::android::RegisterJni(env))
- return false;
-
- if (!blimp::client::RegisterBlimpJni(env))
- return false;
-
- if (!blimp::client::RegisterBlimpAppJni(env))
- return false;
-
- if (!ui::RegisterUIAndroidJni(env))
- return false;
-
- return true;
-}
-
-} // namespace
-
-namespace blimp {
-namespace client {
-
-static jboolean StartBlimp(JNIEnv* env,
- const base::android::JavaParamRef<jclass>& clazz) {
- if (!InitializeMainMessageLoop())
- return false;
-
- base::MessageLoopForUI::current()->Start();
-
- return true;
-}
-
-bool RegisterBlimpLibraryLoaderJni(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-} // namespace client
-} // namespace blimp
-
-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(&OnJniInitializationComplete));
-
- // Although we only need to register JNI for base/ and blimp/, this follows
- // the general Chrome for Android pattern, to be future-proof against future
- // changes to JNI.
- if (!base::android::OnJNIOnLoadRegisterJNI(vm, register_callbacks) ||
- !base::android::OnJNIOnLoadInit(init_callbacks)) {
- return -1;
- }
-
- return JNI_VERSION_1_4;
-}
« no previous file with comments | « blimp/client/app/android/blimp_library_loader.h ('k') | blimp/client/app/android/java/res/drawable-hdpi/btn_menu.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698