summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 20:38:47 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 20:38:47 +0000
commit72a9cd3f9e52ff4ff16df9bb018a23c08e455af7 (patch)
treed9301e540322f70e4918dc5134b798a653f4581b /chrome/browser/net
parent8ade882b6bdcf1e35442e0c288f2f142b7c85b58 (diff)
downloadchromium_src-72a9cd3f9e52ff4ff16df9bb018a23c08e455af7.zip
chromium_src-72a9cd3f9e52ff4ff16df9bb018a23c08e455af7.tar.gz
chromium_src-72a9cd3f9e52ff4ff16df9bb018a23c08e455af7.tar.bz2
Set media cache back to its maximum ~1.8GB
We allow media cache to be set to its maximum for testing purpose. TBR=fbarchard, scherkus, rvargas Review URL: http://codereview.chromium.org/67175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index 521a40a..2a1005a 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -153,7 +153,7 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateRequestContextForMedia(
// Also share the cookie store of the common profile.
context->cookie_store_ = original_context->cookie_store();
- // Create a media cache with maximum size of 240000000 (~240MB), which is a
+ // Create a media cache with maximum size of ~1.8GB, which is a
// size cache backend won't complain.
// TODO(hclam): make the maximum size of media cache configurable.
net::HttpCache* original_cache =
@@ -168,12 +168,12 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateRequestContextForMedia(
net::HttpNetworkLayer* original_network_layer =
static_cast<net::HttpNetworkLayer*>(original_cache->network_layer());
cache = new net::HttpCache(original_network_layer->GetSession(),
- disk_cache_path.ToWStringHack(), 240000000);
+ disk_cache_path.ToWStringHack(), kint32max - kint32max / 10 - 1);
} else {
// If original HttpCache doesn't exist, simply construct one with a whole
// new set of network stack.
cache = new net::HttpCache(original_context->proxy_service(),
- disk_cache_path.ToWStringHack(), 240000000);
+ disk_cache_path.ToWStringHack(), kint32max - kint32max / 10 - 1);
}
// Set the cache type to media.