Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: net/http/http_cache.cc

Issue 356953003: Adding DiskBasedCertCache to HttpCache (+UMA). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@current
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698