blob: 1add0b69c62d0a2e2542099e122a170d7d05244b [file] [log] [blame]
// 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);
}