2651385: Moving Profile::shared_cors_origin_access_list_ into //content layer.
https://chromium-review.googlesource.com/c/chromium/src/+/2651385
This commit is contained in:
parent
185c343b22
commit
88bbe2a352
2 changed files with 2 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue