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

View File

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