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

/cc @electron/code-owners 
shell/browser/api/electron_api_app.cc
const std::string& name) {
  bool succeed = false;
  base::FilePath path;
  int key = GetPathConstant(name);
  if (key >= 0) {
    succeed = base::PathService::Get(key, &path);
    
    
    if (!succeed && name == "logs") {
      base::ThreadRestrictions::ScopedAllowIO allow_io;
      SetAppLogsPath(thrower, base::Optional<base::FilePath>());
      succeed = base::PathService::Get(key, &path);
    }
  }
  if (!succeed)
    thrower.ThrowError("Failed to get '" + name + "' path");
  return path;
}
void App::SetPath(gin_helper::ErrorThrower thrower,