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 f784595dd1ee926fed15ecb8b202ebdfc5191fda..8d3deaa3b766ce23583b3a9034f56689f69b95e9 100644 |
--- a/ios/web/shell/shell_url_request_context_getter.mm |
+++ b/ios/web/shell/shell_url_request_context_getter.mm |
@@ -159,7 +159,7 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
true /* set_up_quic_server_info */)); |
std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory( |
- new net::URLRequestJobFactoryImpl()); |
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers()); |
bool set_protocol = job_factory->SetProtocolHandler( |
"data", base::WrapUnique(new net::DataProtocolHandler)); |
DCHECK(set_protocol); |