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

Unified Diff: net/http/disk_based_cert_cache.cc

Issue 983223004: base: Remove non-const refs from the MRUCache implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« base/containers/mru_cache.h ('K') | « net/http/disk_based_cert_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_based_cert_cache.cc
diff --git a/net/http/disk_based_cert_cache.cc b/net/http/disk_based_cert_cache.cc
index b91fb10bc44a23b643cae67db13a1a0152967f77..ffadb3950c25d5452337e7f570d3dcf9871e9a07 100644
--- a/net/http/disk_based_cert_cache.cc
+++ b/net/http/disk_based_cert_cache.cc
@@ -500,8 +500,8 @@ void DiskBasedCertCache::ReadWorker::RunCallbacks() {
}
void DiskBasedCertCache::CertFree::operator()(
- X509Certificate::OSCertHandle cert_handle) {
- X509Certificate::FreeOSCertHandle(cert_handle);
+ X509Certificate::OSCertHandle* cert_handle) {
+ X509Certificate::FreeOSCertHandle(*cert_handle);
}
DiskBasedCertCache::DiskBasedCertCache(disk_cache::Backend* backend)
« base/containers/mru_cache.h ('K') | « net/http/disk_based_cert_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698