aw_debug.cc 905 B

12345678910111213141516171819202122232425
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "android_webview/browser/aw_render_process.h"
  5. #include "android_webview/browser_jni_headers/AwDebug_jni.h"
  6. #include "android_webview/common/crash_reporter/crash_keys.h"
  7. #include "base/android/jni_android.h"
  8. #include "base/android/jni_string.h"
  9. #include "base/no_destructor.h"
  10. #include "components/crash/core/common/crash_key.h"
  11. using content::RenderProcessHost;
  12. namespace android_webview {
  13. static void JNI_AwDebug_SetSupportLibraryWebkitVersionCrashKey(
  14. JNIEnv* env,
  15. const base::android::JavaParamRef<jstring>& version) {
  16. static ::crash_reporter::CrashKeyString<32> crash_key(
  17. crash_keys::kSupportLibraryWebkitVersion);
  18. crash_key.Set(ConvertJavaStringToUTF8(env, version));
  19. }
  20. } // namespace android_webview