It's going to be removed from Chromium, see https://crbug.com/812523.

/cc @electron/code-owners 
shell/browser/api/electron_api_app.cc
app_metrics_.erase(pid);
}
base::FilePath App::GetAppPath() const {
  return app_path_;
}
void App::SetAppPath(const base::FilePath& app_path) {
  app_path_ = app_path;
}
#if !defined(OS_MACOSX)
void App::SetAppLogsPath(gin_helper::ErrorThrower thrower,
                         base::Optional<base::FilePath> custom_path) {
  if (custom_path.has_value()) {
    if (!custom_path->IsAbsolute()) {
      thrower.ThrowError("Path must be absolute");
      return;
    }
    base::PathService::Override(DIR_APP_LOGS, custom_path.value());
  } else {
    base::FilePath path;
    if (base::PathService::Get(DIR_USER_DATA, &path)) {
      path = path.Append(base::FilePath::FromUTF8Unsafe(GetApplicationName()));
      path = path.Append(base::FilePath::FromUTF8Unsafe("logs"));
      base::PathService::Override(DIR_APP_LOGS, path);
    }
  }
}
#endif
base::FilePath App::GetPath(gin_helper::ErrorThrower thrower,