From 88fb4ada915e7f37a6ac939c10ef0ff96889dc71 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Thu, 15 Oct 2009 23:40:15 +0000 Subject: 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 --- chrome/browser/net/chrome_url_request_context.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser') 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(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( -- cgit v1.1