xref: /aosp_15_r20/external/libchrome/base/android/throw_uncaught_exception.cc (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1 // Copyright 2017 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 "base/android/throw_uncaught_exception.h"
6 
7 #include "base/android/jni_android.h"
8 
9 #include "jni/ThrowUncaughtException_jni.h"
10 
11 namespace base {
12 namespace android {
13 
ThrowUncaughtException()14 void ThrowUncaughtException() {
15   Java_ThrowUncaughtException_post(AttachCurrentThread());
16 }
17 
18 }  // namespace android
19 }  // namespace base
20