Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: base/android/java/src/org/chromium/base/ThrowUncaughtException.java

Issue 2664373002: android: Add debug url to throw uncaught exception (Closed)
Patch Set: fix missing os_android Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/android/throw_uncaught_exception.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ThrowUncaughtException.java
diff --git a/base/android/java/src/org/chromium/base/ThrowUncaughtException.java b/base/android/java/src/org/chromium/base/ThrowUncaughtException.java
new file mode 100644
index 0000000000000000000000000000000000000000..f3f1f3e7450aaeb2eae540aada25b308da999783
--- /dev/null
+++ b/base/android/java/src/org/chromium/base/ThrowUncaughtException.java
@@ -0,0 +1,23 @@
+// Copyright 2017 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.base;
+
+import org.chromium.base.annotations.CalledByNative;
+import org.chromium.base.annotations.MainDex;
+import org.chromium.base.annotations.SuppressFBWarnings;
+
+@MainDex
+@SuppressFBWarnings("NM_CLASS_NOT_EXCEPTION")
+abstract class ThrowUncaughtException {
+ @CalledByNative
+ private static void post() {
+ ThreadUtils.postOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ throw new RuntimeException("Intentional exception not caught by JNI");
+ }
+ });
+ }
+}
« no previous file with comments | « base/BUILD.gn ('k') | base/android/throw_uncaught_exception.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698