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

Unified Diff: chromecast/browser/url_request_context_factory.cc

Issue 961993006: [Chromecast] Remove in-memory HttpCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4a25eb67d6425fb13076fac4b8f9d41618db2115 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,7 +363,8 @@ net::URLRequestContext* URLRequestContextFactory::CreateMainRequestContext(
PopulateNetworkSessionParams(ignore_certificate_errors,
&network_session_params);
InitializeMainContextDependencies(
- new net::HttpCache(network_session_params, main_backend),
+ new net::HttpNetworkLayer(
+ new net::HttpNetworkSession(network_session_params)),
protocol_handlers,
request_interceptors.Pass());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698