diff --git a/shell/browser/electron_browser_context.cc b/shell/browser/electron_browser_context.cc index 97b4cc29b4f7..810d7dba8fe4 100644 --- a/shell/browser/electron_browser_context.cc +++ b/shell/browser/electron_browser_context.cc @@ -108,9 +108,7 @@ ElectronBrowserContext::ElectronBrowserContext(const std::string& partition, : storage_policy_(new SpecialStoragePolicy), protocol_registry_(new ProtocolRegistry), in_memory_(in_memory), - ssl_config_(network::mojom::SSLConfig::New()), - shared_cors_origin_access_list_( - content::SharedCorsOriginAccessList::Create()) { + ssl_config_(network::mojom::SSLConfig::New())) { user_agent_ = ElectronBrowserClient::Get()->GetUserAgent(); // Read options. diff --git a/shell/browser/net/network_context_service.cc b/shell/browser/net/network_context_service.cc index a99cdb99eb2a..a1ee1d2dc381 100644 --- a/shell/browser/net/network_context_service.cc +++ b/shell/browser/net/network_context_service.cc @@ -44,7 +44,7 @@ void NetworkContextService::ConfigureNetworkContextParams( network_context_params->user_agent = browser_context_->GetUserAgent(); network_context_params->cors_origin_access_list = - browser_context_->GetSharedCorsOriginAccessList() + content::BrowserContext::GetSharedCorsOriginAccessList(browser_context_) ->GetOriginAccessList() .CreateCorsOriginAccessPatternsList();