boliu | 7a81c252 | 2017-02-03 03:41:04 | [diff] [blame] | 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 | |
| 14 | void ThrowUncaughtException() { |
| 15 | Java_ThrowUncaughtException_post(AttachCurrentThread()); |
| 16 | } |
| 17 | |
| 18 | } // namespace android |
| 19 | } // namespace base |