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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwDebug.java

Issue 2717223003: Add WebView-specific whitelist for crash keys. (Closed)
Patch Set: Use non-allocating whitelist implementation. Add instrumentation tests. Created 3 years, 10 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
Index: android_webview/java/src/org/chromium/android_webview/AwDebug.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwDebug.java b/android_webview/java/src/org/chromium/android_webview/AwDebug.java
index 7de5d284f3490dfcc3d925c13d97ed80c7045465..27ac16adab4823429ad0b6d1457e69f6014f51d8 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwDebug.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwDebug.java
@@ -42,5 +42,15 @@ public class AwDebug {
return nativeDumpWithoutCrashing(dumpPath);
}
+ public static void initCrashKeysForTesting() {
+ nativeInitCrashKeysForWebViewTesting();
+ }
+
+ public static void setCrashKeyValue(String key, String value) {
+ nativeSetCrashKeyValue(key, value);
+ }
+
private static native boolean nativeDumpWithoutCrashing(String dumpPath);
+ private static native void nativeInitCrashKeysForTesting();
+ private static native void nativeSetCrashKeyValue(String key, String value);
}

Powered by Google App Engine
This is Rietveld 408576698