feat: add serviceName to 'child-process-gone' / app.getAppMetrics() (#25975)

This commit is contained in:
Milan Burda 2020-10-19 13:55:47 +02:00 committed by GitHub
parent c27e5fdbb6
commit decb1eb87b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 3 deletions

View file

@ -53,9 +53,11 @@ namespace electron {
ProcessMetric::ProcessMetric(int type,
base::ProcessHandle handle,
std::unique_ptr<base::ProcessMetrics> metrics,
const std::string& service_name,
const std::string& name) {
this->type = type;
this->metrics = std::move(metrics);
this->service_name = service_name;
this->name = name;
#if defined(OS_WIN)