зеркало из https://github.com/electron/electron.git
fixup! enable_file_url_support and enable_data_url_support have been removed
This commit is contained in:
Родитель
b965abfda8
Коммит
515c927b14
|
@ -40,6 +40,9 @@ void IOThread::Init() {
|
|||
std::unique_ptr<network::URLRequestContextBuilderMojo> builder =
|
||||
std::make_unique<network::URLRequestContextBuilderMojo>();
|
||||
|
||||
// Enable file:// support.
|
||||
builder->set_file_enabled(true);
|
||||
|
||||
auto cert_verifier = std::make_unique<net::CachingCertVerifier>(
|
||||
std::make_unique<net::MultiThreadedCertVerifier>(
|
||||
net::CertVerifyProc::CreateDefault()));
|
||||
|
|
|
@ -261,6 +261,10 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
|||
if (!url_request_context_) {
|
||||
std::unique_ptr<network::URLRequestContextBuilderMojo> builder =
|
||||
std::make_unique<network::URLRequestContextBuilderMojo>();
|
||||
|
||||
// Enable file:// support.
|
||||
builder->set_file_enabled(true);
|
||||
|
||||
auto network_delegate = std::make_unique<AtomNetworkDelegate>();
|
||||
network_delegate_ = network_delegate.get();
|
||||
builder->set_network_delegate(std::move(network_delegate));
|
||||
|
|
Загрузка…
Ссылка в новой задаче