summaryrefslogtreecommitdiffstats
path: root/android_webview/apk
diff options
context:
space:
mode:
authortobiasjs <tobiasjs@chromium.org>2015-10-12 03:18:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-12 10:19:36 +0000
commit26bcca1cafa64ca66c45490a1b7efd9ca58bc414 (patch)
treea1c71adc7c38c68174fa4f9549836bac759ebbd2 /android_webview/apk
parentfae2b70dd10c74dcf5d1749db8af581d23ce539e (diff)
downloadchromium_src-26bcca1cafa64ca66c45490a1b7efd9ca58bc414.zip
chromium_src-26bcca1cafa64ca66c45490a1b7efd9ca58bc414.tar.gz
chromium_src-26bcca1cafa64ca66c45490a1b7efd9ca58bc414.tar.bz2
Add a method for programmatically causing WebView to generate a minidump.
In certain (as yet undiagnosed) circumstances it seems possible for WebView instances to appear to become unresponsive, without crashing. In order to debug this case, add AwDebug.dumpWithoutCrashing(File) - which allows a caller to use the breakpad minidump mechanism to produce a dump that can be processed to extract useful information about the state of the WebView threads. (NOPRESUBMIT to bypass ScopedAllowIO restriction; per comment in aw_debug.cc, this is meant to be used when WebView is in an undefined state, and posting I/O to another thread is impossible) BUG=537579 NOPRESUBMIT=TRUE Review URL: https://codereview.chromium.org/1384823004 Cr-Commit-Position: refs/heads/master@{#353504}
Diffstat (limited to 'android_webview/apk')
-rw-r--r--android_webview/apk/java/proguard.flags5
1 files changed, 5 insertions, 0 deletions
diff --git a/android_webview/apk/java/proguard.flags b/android_webview/apk/java/proguard.flags
index 8dbce53..d8f80cc 100644
--- a/android_webview/apk/java/proguard.flags
+++ b/android_webview/apk/java/proguard.flags
@@ -75,6 +75,11 @@
public void setSmartClipResultHandler(android.os.Handler);
}
+# AwDebug is accessed by reflection.
+-keep class org.chromium.android_webview.AwDebug {
+ public static boolean dumpWithoutCrashing(...);
+}
+
# Ignore notes and warnings about the support library, which uses reflection and
# may reference classes no longer in the SDK.
-dontnote android.support.**