Commit 24c258ea authored by Tobias Sargeant's avatar Tobias Sargeant Committed by Commit Bot

[webview] Document browser process name for crashes.

Change-Id: Ia3add86b7cab7697b5f48f6412932563cbd8af2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1901084Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Tobias Sargeant <tobiasjs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713545}
parent cc673fd0
......@@ -97,10 +97,16 @@ class AwCrashReporterClient : public crash_reporter::CrashReporterClient {
}
bool GetBrowserProcessType(std::string* ptype) override {
*ptype = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kWebViewSandboxedRenderer)
? "browser"
: "webview";
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kWebViewSandboxedRenderer)) {
// In single process mode the renderer and browser are in the same
// process. The process type is "webview" to distinguish this case,
// and for backwards compatibility.
*ptype = "webview";
} else {
// Otherwise, in multi process mode, "browser" suffices.
*ptype = "browser";
}
return true;
}
......
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