Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Unified Diff: ios/web/shell/shell_url_request_context_getter.mm

Issue 1888963004: Add HttpProtocolHandler and convert everything to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-supports-scheme
Patch Set: even more rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698