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

Unified Diff: mojo/shell/android/bootstrap.cc

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: mojo/shell/android/bootstrap.cc
diff --git a/mojo/shell/android/bootstrap.cc b/mojo/shell/android/bootstrap.cc
deleted file mode 100644
index 73eab93501f4c9aff9c694d791640b3ddbe77a58..0000000000000000000000000000000000000000
--- a/mojo/shell/android/bootstrap.cc
+++ /dev/null
@@ -1,41 +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/jni_android.h"
-#include "base/android/jni_string.h"
-#include "base/files/file_path.h"
-#include "base/logging.h"
-#include "jni/Bootstrap_jni.h"
-#include "mojo/shell/android/run_android_application_function.h"
-
-namespace mojo {
-
-void Bootstrap(JNIEnv* env,
- jobject,
- jobject j_context,
- jstring j_native_library_path,
- jint j_handle,
- jlong j_run_application_ptr) {
- base::FilePath app_path(
- base::android::ConvertJavaStringToUTF8(env, j_native_library_path));
- RunAndroidApplicationFn run_android_application_fn =
- reinterpret_cast<RunAndroidApplicationFn>(j_run_application_ptr);
- run_android_application_fn(env, j_context, app_path, j_handle);
-}
-
-bool RegisterBootstrapJni(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-} // namespace mojo
-
-JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
- base::android::InitVM(vm);
- JNIEnv* env = base::android::AttachCurrentThread();
-
- if (!mojo::RegisterBootstrapJni(env))
- return -1;
-
- return JNI_VERSION_1_4;
-}
« no previous file with comments | « mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java ('k') | mojo/shell/android/library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698