Index: net/disk_cache/cache_creator.cc |
diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/cache_creator.cc |
index 0bc66bf66ae8656fd10f26860f0d9c1d5d2b6e6f..904839db0b20881dc0ff7ce9cbda5af0b7c1e1f4 100644 |
--- a/net/disk_cache/cache_creator.cc |
+++ b/net/disk_cache/cache_creator.cc |
@@ -159,7 +159,7 @@ int CreateCacheBackend(net::CacheType type, |
net::NetLog* net_log, scoped_ptr<Backend>* backend, |
const net::CompletionCallback& callback) { |
DCHECK(!callback.is_null()); |
- if (type == net::MEMORY_CACHE) { |
+ if (backend_type == net::CACHE_BACKEND_MEMORY || type == net::MEMORY_CACHE) { |
*backend = disk_cache::MemBackendImpl::CreateBackend(max_bytes, net_log); |
return *backend ? net::OK : net::ERR_FAILED; |
} |