summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 23:40:15 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 23:40:15 +0000
commit88fb4ada915e7f37a6ac939c10ef0ff96889dc71 (patch)
treee7457fbdbde126435002d6e29d1c7d1565d19ec7 /chrome/browser
parentbd18902708017f8b22ed9a4c6e9b3e1b130f2a4c (diff)
downloadchromium_src-88fb4ada915e7f37a6ac939c10ef0ff96889dc71.zip
chromium_src-88fb4ada915e7f37a6ac939c10ef0ff96889dc71.tar.gz
chromium_src-88fb4ada915e7f37a6ac939c10ef0ff96889dc71.tar.bz2
Convert the HTTP cache to use FilePath rather than wstring for the
disk cache path. BUG=24672 Review URL: http://codereview.chromium.org/276048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-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 6d6632c..7d713d8 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -131,7 +131,7 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOriginal(
new net::HttpCache(context->host_resolver_,
context->proxy_service_,
context->ssl_config_service_,
- disk_cache_path.ToWStringHack(), cache_size);
+ disk_cache_path, cache_size);
if (command_line.HasSwitch(switches::kEnableByteRangeSupport))
cache->set_enable_range_support(true);
@@ -297,14 +297,14 @@ 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(), cache_size);
+ disk_cache_path, cache_size);
} else {
// If original HttpCache doesn't exist, simply construct one with a whole
// new set of network stack.
cache = new net::HttpCache(original_context->host_resolver(),
original_context->proxy_service(),
original_context->ssl_config_service(),
- disk_cache_path.ToWStringHack(), cache_size);
+ disk_cache_path, cache_size);
}
if (CommandLine::ForCurrentProcess()->HasSwitch(