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

Unified Diff: trunk/src/content/shell/shell_url_request_context_getter.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/content/shell/shell_content_browser_client.cc ('k') | trunk/src/net/ftp/ftp_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/shell/shell_url_request_context_getter.cc
===================================================================
--- trunk/src/content/shell/shell_url_request_context_getter.cc (revision 188924)
+++ trunk/src/content/shell/shell_url_request_context_getter.cc (working copy)
@@ -27,8 +27,6 @@
#include "net/ssl/default_server_bound_cert_store.h"
#include "net/ssl/server_bound_cert_service.h"
#include "net/ssl/ssl_config_service_defaults.h"
-#include "net/url_request/data_protocol_handler.h"
-#include "net/url_request/file_protocol_handler.h"
#include "net/url_request/protocol_intercept_job_factory.h"
#include "net/url_request/static_http_user_agent_settings.h"
#include "net/url_request/url_request_context.h"
@@ -178,17 +176,7 @@
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(
new net::URLRequestJobFactoryImpl());
- // Keep ProtocolHandlers added in sync with
- // ShellContentBrowserClient::IsHandledURL().
InstallProtocolHandlers(job_factory.get(), &protocol_handlers_);
- bool set_protocol = job_factory->SetProtocolHandler(
- chrome::kDataScheme,
- new net::DataProtocolHandler);
- DCHECK(set_protocol);
- set_protocol = job_factory->SetProtocolHandler(
- chrome::kFileScheme,
- new net::FileProtocolHandler);
- DCHECK(set_protocol);
storage_->set_job_factory(job_factory.release());
}
« no previous file with comments | « trunk/src/content/shell/shell_content_browser_client.cc ('k') | trunk/src/net/ftp/ftp_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698