diff options
author | primiano <primiano@chromium.org> | 2014-10-28 05:31:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-28 12:31:20 +0000 |
commit | a90342e18c8cbd97bef789d2d8ef52bf140fb528 (patch) | |
tree | 4fc1b0c81bb9a0ba8b85c87ea2b32d1f792799b6 /android_webview/java | |
parent | 5a5999ebee2d83c5a8dc72b3c6035fd803fdf90d (diff) | |
download | chromium_src-a90342e18c8cbd97bef789d2d8ef52bf140fb528.zip chromium_src-a90342e18c8cbd97bef789d2d8ef52bf140fb528.tar.gz chromium_src-a90342e18c8cbd97bef789d2d8ef52bf140fb528.tar.bz2 |
[Android] Add minimalistic crash handler for WebView.
In the case of a crash this crash handler will print out on logcat the
version name and code. This is to reliabily determine the WebView
version in crash logs and pull the matching symbols.
This change requires a corresponding Android change to register the
crash handler in the very early stages (after LoadLibrary).
BUG=
Review URL: https://codereview.chromium.org/678763005
Cr-Commit-Position: refs/heads/master@{#301626}
Diffstat (limited to 'android_webview/java')
-rw-r--r-- | android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java b/android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java index aeec329..7800965 100644 --- a/android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java +++ b/android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java @@ -74,6 +74,13 @@ public class AwContentsStatics { nativeSetRecordFullDocument(recordFullDocument); } + /* + * Register the signal handler that prints out the version code upon crash. + */ + public static void registerCrashHandler(String version) { + nativeRegisterCrashHandler(version); + } + //-------------------------------------------------------------------------------------------- // Native methods //-------------------------------------------------------------------------------------------- @@ -82,4 +89,5 @@ public class AwContentsStatics { private static native void nativeSetDataReductionProxyEnabled(boolean enabled); private static native String nativeGetUnreachableWebDataUrl(); private static native void nativeSetRecordFullDocument(boolean recordFullDocument); + private static native void nativeRegisterCrashHandler(String version); } |