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

Side by Side Diff: mojo/services/network/android_hooks.cc

Issue 780043002: Build standalone network service on Android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase. 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 unified diff | Download patch
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | no next file » | 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 2014 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_registrar.h"
6 #include "base/android/jni_android.h"
7 #include "net/android/net_jni_registrar.h"
8
9 JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
10 base::android::InitVM(vm);
11 JNIEnv* env = base::android::AttachCurrentThread();
12
13 if (!base::android::RegisterJni(env))
14 return -1;
15
16 if (!net::android::RegisterJni(env))
17 return -1;
18
19 return JNI_VERSION_1_4;
20 }
21
22 extern "C" JNI_EXPORT void InitApplicationContext(
23 const base::android::JavaRef<jobject>& context) {
24 JNIEnv* env = base::android::AttachCurrentThread();
25 base::android::InitApplicationContext(env, context);
26 }
OLDNEW
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698