summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/disk_cache/backend_impl.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index ae08765..0b48c5a 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -272,12 +272,16 @@ int CreateCacheBackend(net::CacheType type, const base::FilePath& path,
DCHECK(thread);
#if defined(USE_SIMPLE_CACHE_BACKEND)
- return SimpleBackendImpl::CreateBackend(path, force, max_bytes, type, kNone,
- thread, net_log, backend, callback);
-#else
- return BackendImpl::CreateBackend(path, force, max_bytes, type, kNone, thread,
- net_log, backend, callback);
+ // TODO(gavinp,pasko): While simple backend development proceeds, we're only
+ // testing it against net::DISK_CACHE. Turn it on for more cache types as
+ // appropriate.
+ if (type == net::DISK_CACHE) {
+ return SimpleBackendImpl::CreateBackend(path, force, max_bytes, type, kNone,
+ thread, net_log, backend, callback);
+ }
#endif
+ return BackendImpl::CreateBackend(path, force, max_bytes, type, kNone,
+ thread, net_log, backend, callback);
}
// Returns the preferred maximum number of bytes for the cache given the