| Index: components/cronet/url_request_context_config.cc
|
| diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
|
| index 66f9fb06e053ac65bbd6bd6244bb171a4529129a..5d1a00bcc3a2ab00dfa1bda1631d9e2e25b023e9 100644
|
| --- a/components/cronet/url_request_context_config.cc
|
| +++ b/components/cronet/url_request_context_config.cc
|
| @@ -25,6 +25,8 @@ namespace cronet {
|
|
|
| namespace {
|
|
|
| +// Name of disk cache directory.
|
| +const char kDiskCacheDirectoryName[] = "disk_cache";
|
| // TODO(xunjieli): Refactor constants in io_thread.cc.
|
| const char kQuicFieldTrialName[] = "QUIC";
|
| const char kQuicConnectionOptions[] = "connection_options";
|
| @@ -276,7 +278,9 @@ void URLRequestContextConfig::ConfigureURLRequestContextBuilder(
|
| net::URLRequestContextBuilder::HttpCacheParams cache_params;
|
| if (http_cache == DISK && !storage_path.empty()) {
|
| cache_params.type = net::URLRequestContextBuilder::HttpCacheParams::DISK;
|
| - cache_params.path = base::FilePath(storage_path);
|
| + cache_params.path =
|
| + base::FilePath(storage_path)
|
| + .Append(FILE_PATH_LITERAL(kDiskCacheDirectoryName));
|
| } else {
|
| cache_params.type =
|
| net::URLRequestContextBuilder::HttpCacheParams::IN_MEMORY;
|
|
|