Index: chromecast/browser/url_request_context_factory.cc |
diff --git a/chromecast/browser/url_request_context_factory.cc b/chromecast/browser/url_request_context_factory.cc |
index 892fd003591393798a951340e36784ac67545a4f..a7e712303c6b7661798235c492bf4b0961256f76 100644 |
--- a/chromecast/browser/url_request_context_factory.cc |
+++ b/chromecast/browser/url_request_context_factory.cc |
@@ -19,7 +19,6 @@ |
#include "net/cookies/cookie_store.h" |
#include "net/dns/host_resolver.h" |
#include "net/http/http_auth_handler_factory.h" |
-#include "net/http/http_cache.h" |
#include "net/http/http_network_layer.h" |
#include "net/http/http_server_properties_impl.h" |
#include "net/http/http_stream_factory.h" |
@@ -355,9 +354,6 @@ net::URLRequestContext* URLRequestContextFactory::CreateMainRequestContext( |
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
InitializeSystemContextDependencies(); |
- net::HttpCache::BackendFactory* main_backend = |
- net::HttpCache::DefaultBackend::InMemory(16 * 1024 * 1024); |
- |
bool ignore_certificate_errors = false; |
base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
if (cmd_line->HasSwitch(switches::kIgnoreCertificateErrors)) { |
@@ -367,9 +363,9 @@ net::URLRequestContext* URLRequestContextFactory::CreateMainRequestContext( |
PopulateNetworkSessionParams(ignore_certificate_errors, |
&network_session_params); |
InitializeMainContextDependencies( |
- new net::HttpCache(network_session_params, main_backend), |
- protocol_handlers, |
- request_interceptors.Pass()); |
+ new net::HttpNetworkLayer( |
+ new net::HttpNetworkSession(network_session_params)), |
+ protocol_handlers, request_interceptors.Pass()); |
lcwu1
2015/03/03 19:01:33
nit: I would probably move request_interceptors.Pa
|
content::CookieStoreConfig cookie_config( |
browser_context->GetPath().Append(kCookieStoreFile), |