refactor: nws13n: session.allowNTLMCredentialsForDomains (#18129)
This commit is contained in:
parent
f4c792d014
commit
2dbd2c07e4
3 changed files with 17 additions and 21 deletions
|
@ -42,6 +42,10 @@ network::mojom::HttpAuthStaticParamsPtr CreateHttpAuthStaticParams() {
|
|||
return auth_static_params;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace atom {
|
||||
|
||||
network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams() {
|
||||
auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
network::mojom::HttpAuthDynamicParamsPtr auth_dynamic_params =
|
||||
|
@ -57,7 +61,7 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams() {
|
|||
return auth_dynamic_params;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace atom
|
||||
|
||||
// SharedURLLoaderFactory backed by a SystemNetworkContextManager and its
|
||||
// network context. Transparently handles crashes.
|
||||
|
@ -191,7 +195,7 @@ void SystemNetworkContextManager::SetUp(
|
|||
*network_context_params = CreateDefaultNetworkContextParams();
|
||||
}
|
||||
*http_auth_static_params = CreateHttpAuthStaticParams();
|
||||
*http_auth_dynamic_params = CreateHttpAuthDynamicParams();
|
||||
*http_auth_dynamic_params = atom::CreateHttpAuthDynamicParams();
|
||||
}
|
||||
|
||||
// static
|
||||
|
@ -230,7 +234,7 @@ void SystemNetworkContextManager::OnNetworkServiceCreated(
|
|||
return;
|
||||
|
||||
network_service->SetUpHttpAuth(CreateHttpAuthStaticParams());
|
||||
network_service->ConfigureHttpAuthPrefs(CreateHttpAuthDynamicParams());
|
||||
network_service->ConfigureHttpAuthPrefs(atom::CreateHttpAuthDynamicParams());
|
||||
|
||||
// The system NetworkContext must be created first, since it sets
|
||||
// |primary_network_context| to true.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue