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),
|
: storage_policy_(new SpecialStoragePolicy),
|
||||||
protocol_registry_(new ProtocolRegistry),
|
protocol_registry_(new ProtocolRegistry),
|
||||||
in_memory_(in_memory),
|
in_memory_(in_memory),
|
||||||
ssl_config_(network::mojom::SSLConfig::New()),
|
ssl_config_(network::mojom::SSLConfig::New())) {
|
||||||
shared_cors_origin_access_list_(
|
|
||||||
content::SharedCorsOriginAccessList::Create()) {
|
|
||||||
user_agent_ = ElectronBrowserClient::Get()->GetUserAgent();
|
user_agent_ = ElectronBrowserClient::Get()->GetUserAgent();
|
||||||
|
|
||||||
// Read options.
|
// Read options.
|
||||||
|
|
|
@ -44,7 +44,7 @@ void NetworkContextService::ConfigureNetworkContextParams(
|
||||||
network_context_params->user_agent = browser_context_->GetUserAgent();
|
network_context_params->user_agent = browser_context_->GetUserAgent();
|
||||||
|
|
||||||
network_context_params->cors_origin_access_list =
|
network_context_params->cors_origin_access_list =
|
||||||
browser_context_->GetSharedCorsOriginAccessList()
|
content::BrowserContext::GetSharedCorsOriginAccessList(browser_context_)
|
||||||
->GetOriginAccessList()
|
->GetOriginAccessList()
|
||||||
.CreateCorsOriginAccessPatternsList();
|
.CreateCorsOriginAccessPatternsList();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue