Skip to content

Commit

Permalink
Fix disk_cache crash in modular builds (#2736)
Browse files Browse the repository at this point in the history
b/331426491
  • Loading branch information
sherryzy authored Mar 27, 2024
2 parents 4ebb5a9 + 18b20a8 commit c21ab66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/disk_cache/disk_cache_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c21ab66

Please sign in to comment.