| // Copyright 2018 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. |
| |
| package org.chromium.components.crash.browser; |
| |
| import org.chromium.base.annotations.JNINamespace; |
| import org.chromium.base.annotations.UsedByReflection; |
| import org.chromium.base.library_loader.NativeLibraries; |
| |
| @JNINamespace("crashpad") |
| final class CrashpadMain { |
| @UsedByReflection("crashpad_linux.cc") |
| public static void main(String[] argv) { |
| try { |
| for (String library : NativeLibraries.LIBRARIES) { |
| System.loadLibrary(library); |
| } |
| } catch (UnsatisfiedLinkError e) { |
| throw new RuntimeException(e); |
| } |
| nativeCrashpadMain(argv); |
| } |
| |
| private static native void nativeCrashpadMain(String[] argv); |
| } |