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

Unified Diff: net/proxy/proxy_script_fetcher_impl_unittest.cc

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: net/proxy/proxy_script_fetcher_impl_unittest.cc
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index 9154798ad73795aec10591d8dd339240a4cc4cea..c0b7398f1a420f9c7fd3fa442162ae85d548715f 100644
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
@@ -86,7 +86,8 @@ class RequestContext : public URLRequestContext {
new HttpCache(storage_.http_network_session(),
HttpCache::DefaultBackend::InMemory(0), false)));
std::unique_ptr<URLRequestJobFactoryImpl> job_factory =
- base::WrapUnique(new URLRequestJobFactoryImpl());
+ URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers();
+
#if !defined(DISABLE_FILE_SUPPORT)
job_factory->SetProtocolHandler("file",
base::WrapUnique(new FileProtocolHandler(

Powered by Google App Engine
This is Rietveld 408576698