| Index: android_webview/native/aw_debug.cc
|
| diff --git a/android_webview/native/aw_debug.cc b/android_webview/native/aw_debug.cc
|
| index b7d83b6fb28aa218eebe252ccf74965fb6d20725..6c4b214cb5bc4d382e826160149788a245c97691 100644
|
| --- a/android_webview/native/aw_debug.cc
|
| +++ b/android_webview/native/aw_debug.cc
|
| @@ -5,6 +5,7 @@
|
| #include "android_webview/native/aw_debug.h"
|
|
|
| #include "android_webview/common/crash_reporter/aw_microdump_crash_reporter.h"
|
| +#include "android_webview/common/crash_reporter/crash_keys.h"
|
| #include "base/android/jni_android.h"
|
| #include "base/android/jni_string.h"
|
| #include "base/debug/dump_without_crashing.h"
|
| @@ -36,6 +37,19 @@ static jboolean DumpWithoutCrashing(JNIEnv* env,
|
| return crash_reporter::DumpWithoutCrashingToFd(target.TakePlatformFile());
|
| }
|
|
|
| +static void InitCrashKeysForWebViewTesting(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz) {
|
| + crash_keys::InitCrashKeysForWebViewTesting();
|
| +}
|
| +
|
| +static void SetCrashKeyValue(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + const JavaParamRef<jstring>& key,
|
| + const JavaParamRef<jstring>& value) {
|
| + crash_keys::SetCrashKeyValue(ConvertJavaStringToUTF8(env, key),
|
| + ConvertJavaStringToUTF8(env, value));
|
| +}
|
| +
|
| bool RegisterAwDebug(JNIEnv* env) {
|
| return RegisterNativesImpl(env);
|
| }
|
|
|