You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
702 B
25 lines
702 B
4 months ago
|
// 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 "base/android/base_jni_onload.h"
|
||
|
|
||
|
#include "base/android/jni_android.h"
|
||
|
#include "base/android/jni_utils.h"
|
||
|
#include "base/android/library_loader/library_loader_hooks.h"
|
||
|
#include "base/bind.h"
|
||
|
|
||
|
namespace base {
|
||
|
namespace android {
|
||
|
|
||
|
bool OnJNIOnLoadInit() {
|
||
|
InitAtExitManager();
|
||
|
JNIEnv* env = base::android::AttachCurrentThread();
|
||
|
base::android::InitReplacementClassLoader(env,
|
||
|
base::android::GetClassLoader(env));
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
} // namespace android
|
||
|
} // namespace base
|