| Index: net/disk_cache/backend_impl.cc
|
| diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
|
| index e7fad5b9ffe8def36969239edca1ebe9a49d5541..d0c5ec9e38e146770876fe091980c0f5debbb04c 100644
|
| --- a/net/disk_cache/backend_impl.cc
|
| +++ b/net/disk_cache/backend_impl.cc
|
| @@ -28,6 +28,7 @@
|
| #include "net/disk_cache/experiments.h"
|
| #include "net/disk_cache/file.h"
|
| #include "net/disk_cache/mem_backend_impl.h"
|
| +#include "net/disk_cache/simple/simple_backend_impl.h"
|
|
|
| // This has to be defined before including histogram_macros.h from this file.
|
| #define NET_DISK_CACHE_BACKEND_IMPL_CC_
|
| @@ -259,6 +260,7 @@ int CreateCacheBackend(net::CacheType type, const FilePath& path, int max_bytes,
|
| bool force, base::MessageLoopProxy* thread,
|
| net::NetLog* net_log, Backend** backend,
|
| const net::CompletionCallback& callback) {
|
| + // TODO(pasko): Separate out cache creation when landing cache tracer.
|
| DCHECK(!callback.is_null());
|
| if (type == net::MEMORY_CACHE) {
|
| *backend = MemBackendImpl::CreateBackend(max_bytes, net_log);
|
| @@ -266,8 +268,13 @@ int CreateCacheBackend(net::CacheType type, const FilePath& path, int max_bytes,
|
| }
|
| DCHECK(thread);
|
|
|
| +#if defined(USE_SIMPLE_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);
|
| +#endif
|
| }
|
|
|
| // Returns the preferred maximum number of bytes for the cache given the
|
|
|