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

Side by Side Diff: chrome/browser/android/chrome_staging_jni_onload.cc

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 "chrome/browser/android/chrome_staging_jni_onload.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "base/android/library_loader/library_loader_hooks.h"
10 #include "base/bind.h"
11 #include "chrome/app/android/chrome_jni_onload.h"
12 #include "chrome/browser/android/staging_jni_registrar.h"
13
14 namespace chrome {
15 namespace android {
16
17 namespace {
18
19 bool RegisterJNI(JNIEnv* env) {
20 if (base::android::GetLibraryProcessType(env) ==
21 base::android::PROCESS_BROWSER) {
22 return RegisterStagingJNI(env);
23 }
24 return true;
25 }
26
27 bool Init() {
28 return true;
29 }
30
31 } // namespace
32
33 bool OnJNIOnLoadRegisterJNI(JavaVM* vm) {
34 return OnJNIOnLoadRegisterJNI(vm, base::Bind(&RegisterJNI));
35 }
36
37 bool OnJNIOnLoadInit() {
38 return OnJNIOnLoadInit(base::Bind(&Init));
39 }
40
41 } // namespace android
42 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_staging_jni_onload.h ('k') | chrome/browser/android/compositor/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698