fix: crash on boot with --log-net-log (#22035)

This commit is contained in:
Jeremy Apthorp 2020-02-04 18:04:35 -08:00 committed by GitHub
parent d9321f4df7
commit ba5d712a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,8 @@ ElectronBrowserContext::ElectronBrowserContext(const std::string& partition,
storage_policy_(new SpecialStoragePolicy), storage_policy_(new SpecialStoragePolicy),
in_memory_(in_memory), in_memory_(in_memory),
weak_factory_(this) { weak_factory_(this) {
// TODO(nornagon): remove once https://crbug.com/1048822 is fixed.
base::ScopedAllowBlockingForTesting allow_blocking;
user_agent_ = ElectronBrowserClient::Get()->GetUserAgent(); user_agent_ = ElectronBrowserClient::Get()->GetUserAgent();
// Read options. // Read options.