diff --git a/net/disk_cache/disk_cache_backend.cc b/net/disk_cache/disk_cache_backend.cc index 0d22126cca09..d1c678cca9dc 100644 --- a/net/disk_cache/disk_cache_backend.cc +++ b/net/disk_cache/disk_cache_backend.cc @@ -353,7 +353,7 @@ BackendResult CreateCacheBackend(net::CacheType type, if (mem_backend_impl) { mem_backend_impl->SetPostCleanupCallback( std::move(post_cleanup_callback)); - return BackendResult::MakeError(net::OK); + return BackendResult::Make(std::move(mem_backend_impl)); } else { if (!post_cleanup_callback.is_null()) base::SequencedTaskRunner::GetCurrentDefault()->PostTask(