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

Unified Diff: mojo/services/network/network_context.cc

Issue 697883003: Store network_service cache in memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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: mojo/services/network/network_context.cc
diff --git a/mojo/services/network/network_context.cc b/mojo/services/network/network_context.cc
index a99652218c5af28be20b878c3aba7de92394823d..1adc6619bbff0b5efe56439c79f7ddeacfec4458 100644
--- a/mojo/services/network/network_context.cc
+++ b/mojo/services/network/network_context.cc
@@ -22,7 +22,10 @@ NetworkContext::NetworkContext(const base::FilePath& base_path) {
net::URLRequestContextBuilder::HttpCacheParams cache_params;
cache_params.path = base_path.Append(FILE_PATH_LITERAL("Cache"));
- cache_params.type = net::URLRequestContextBuilder::HttpCacheParams::DISK;
+ // TODO(esprehn): For now store the cache in memory so we can run many shells
+ // in parallel when running tests, otherwise the network services in each
+ // shell will corrupt the disk cache.
+ cache_params.type = net::URLRequestContextBuilder::HttpCacheParams::IN_MEMORY;
builder.EnableHttpCache(cache_params);
builder.set_file_enabled(true);
« 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