summaryrefslogtreecommitdiffstats
path: root/chrome/app/android/chrome_jni_onload.cc
blob: 1d6e8a1f2d57abac40775bd0c498fc3ef586aa4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2012 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 "chrome/app/android/chrome_android_initializer.h"
#include "chrome/app/android/chrome_main_delegate_android.h"

// This is called by the VM when the shared library is first loaded.
// Note that this file must be included in the final shared_library build step
// and not in a static library or the JNI_OnLoad symbol won't be included
// because the Android build is compiled with exclude-libs=ALL to reduce symbol
// size.
JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
  return RunChrome(vm, ChromeMainDelegateAndroid::Create());
}