Index: net/http/http_cache.cc |
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc |
index aa6fc228bc6c91b7cbf31c3fa67145683466695f..e1142a521965837768374079086d9564498855ad 100644 |
--- a/net/http/http_cache.cc |
+++ b/net/http/http_cache.cc |
@@ -1174,8 +1174,10 @@ void HttpCache::OnBackendCreated(int result, PendingOp* pending_op) { |
// work items. The first call saves the backend and releases the factory, |
// and the last call clears building_backend_. |
backend_factory_.reset(); // Reclaim memory. |
- if (result == OK) |
+ if (result == OK) { |
disk_cache_ = pending_op->backend.Pass(); |
+ cert_cache_.reset(new DiskBasedCertCache(disk_cache_.get())); |
+ } |
} |
if (!pending_op->pending_queue.empty()) { |