From 88bbe2a352d39b0c757d71eb6bfbb85008f48c58 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Tue, 16 Mar 2021 10:27:05 -0400 Subject: [PATCH] 2651385: Moving Profile::shared_cors_origin_access_list_ into //content layer. https://chromium-review.googlesource.com/c/chromium/src/+/2651385 --- shell/browser/electron_browser_context.cc | 4 +--- shell/browser/net/network_context_service.cc | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/shell/browser/electron_browser_context.cc b/shell/browser/electron_browser_context.cc index 97b4cc29b4f..810d7dba8fe 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 a99cdb99eb2..a1ee1d2dc38 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();