Index: ios/web/shell/shell_url_request_context_getter.mm |
diff --git a/ios/web/shell/shell_url_request_context_getter.mm b/ios/web/shell/shell_url_request_context_getter.mm |
index 1a352fb3db74d840f7d0911f7978337263fd6bfe..d0ad3c0d1c7ccd6503d3c996fda347447ad2bf7f 100644 |
--- a/ios/web/shell/shell_url_request_context_getter.mm |
+++ b/ios/web/shell/shell_url_request_context_getter.mm |
@@ -144,7 +144,7 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
true /* set_up_quic_server_info */))); |
std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory( |
- new net::URLRequestJobFactoryImpl()); |
+ net::URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers()); |
bool set_protocol = job_factory->SetProtocolHandler( |
"data", base::WrapUnique(new net::DataProtocolHandler)); |
DCHECK(set_protocol); |