Commit 77418db6 authored by Khushal's avatar Khushal Committed by Commit Bot

android: Temporarily generate crash dumps for all renderer hangs on Q.

R=dtrainor@chromium.org

Bug: 983310
Change-Id: I88d7a60b2938355fb1253707ebf45ab8bffe1c82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1699422
Auto-Submit: Khushal <khushalsagar@chromium.org>
Commit-Queue: David Trainor <dtrainor@chromium.org>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#677090}
parent 190a8e91
......@@ -8,6 +8,7 @@
#include <memory>
#include "base/android/build_info.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/bind.h"
......@@ -530,8 +531,14 @@ void JNI_TabWebContentsDelegateAndroid_OnRendererUnresponsive(
// reports.
content::WebContents* web_contents =
content::WebContents::FromJavaWebContents(java_web_contents);
if (base::RandDouble() < 0.01)
// TODO(khushalsagar): Temporarily generate all crash dumps for devices
// running Q to debug a renderer hang. The number of devices running Q at the
// moment is low enough to not overwhelm the crash server.
if (base::RandDouble() < 0.01 ||
base::android::BuildInfo::GetInstance()->is_at_least_q()) {
web_contents->GetMainFrame()->GetProcess()->DumpProcessStack();
}
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableHungRendererInfoBar)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment