### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

14.0.0 beta 9

### What operating system are you using?

macOS

### Operating System Version

macOS Catalina 10.15.7

### What arch are you using?

x64

### Last Known Working Electron version

14.0.0 beta 8

### Expected Behavior

`console.log(app.getPath('userData'))` in main.js in Fiddle should output something like `/Users/miburda/Library/Application Support/stereotyped-rub-drain-i2tik`

### Actual Behavior

`console.log(app.getPath('userData'))` in main.js in Fiddle outputs `/Users/miburda/Library/Application Support/Electron`

### Testcase Gist URL

_No response_

### Additional Information

Seems to be regressed by #29649. Happens both before and after `app.whenReady()`.
shell/browser/electron_browser_context.cc
return net::EscapePath(base::ToLowerASCII(input));
}
}  
ElectronBrowserContext::BrowserContextMap&
ElectronBrowserContext::browser_context_map() {
  static base::NoDestructor<ElectronBrowserContext::BrowserContextMap>
      browser_context_map;
  return *browser_context_map;
}
ElectronBrowserContext::ElectronBrowserContext(const std::string& partition,
                                               bool in_memory,
                                               base::DictionaryValue options)
    : storage_policy_(base::MakeRefCounted<SpecialStoragePolicy>()),
      protocol_registry_(base::WrapUnique(new ProtocolRegistry)),
      in_memory_(in_memory),
      ssl_config_(network::mojom::SSLConfig::New()) {
  user_agent_ = ElectronBrowserClient::Get()->GetUserAgent();
  
  base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
  use_cache_ = !command_line->HasSwitch(switches::kDisableHttpCache);
  options.GetBoolean("cache", &use_cache_);
  base::StringToInt(command_line->GetSwitchValueASCII(switches::kDiskCacheSize),
                    &max_cache_size_);
  if (!base::PathService::Get(chrome::DIR_USER_DATA, &path_)) {
    base::PathService::Get(DIR_APP_DATA, &path_);
    path_ = path_.Append(base::FilePath::FromUTF8Unsafe(GetApplicationName()));
    base::PathService::Override(chrome::DIR_USER_DATA, path_);
  }