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

Unified Diff: trunk/src/net/proxy/proxy_script_fetcher_impl_unittest.cc

Issue 12605011: Revert 188912 "Removed static factories for data, ftp, file, and..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « trunk/src/net/ftp/ftp_network_session.h ('k') | trunk/src/net/url_request/file_protocol_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/proxy/proxy_script_fetcher_impl_unittest.cc
===================================================================
--- trunk/src/net/proxy/proxy_script_fetcher_impl_unittest.cc (revision 188924)
+++ trunk/src/net/proxy/proxy_script_fetcher_impl_unittest.cc (working copy)
@@ -21,7 +21,6 @@
#include "net/http/http_server_properties_impl.h"
#include "net/ssl/ssl_config_service_defaults.h"
#include "net/test/test_server.h"
-#include "net/url_request/file_protocol_handler.h"
#include "net/url_request/url_request_context_storage.h"
#include "net/url_request/url_request_file_job.h"
#include "net/url_request/url_request_job_factory_impl.h"
@@ -67,9 +66,7 @@
storage_.set_http_transaction_factory(new HttpCache(
network_session,
HttpCache::DefaultBackend::InMemory(0)));
- URLRequestJobFactoryImpl* job_factory = new URLRequestJobFactoryImpl();
- job_factory->SetProtocolHandler("file", new FileProtocolHandler());
- storage_.set_job_factory(job_factory);
+ storage_.set_job_factory(new URLRequestJobFactoryImpl());
}
virtual ~RequestContext() {
« no previous file with comments | « trunk/src/net/ftp/ftp_network_session.h ('k') | trunk/src/net/url_request/file_protocol_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698