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

Unified Diff: net/base/host_cache.cc

Issue 10556022: Consider the verification time as well as the expiration time when caching certificate verification… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fixes Created 8 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/base/host_cache.cc
diff --git a/net/base/host_cache.cc b/net/base/host_cache.cc
index 352513bcdef4f02a0c664a6f2f623faef0723364..ae0169cf3b58b84598d8e5bbd73303ae5de0c68a 100644
--- a/net/base/host_cache.cc
+++ b/net/base/host_cache.cc
@@ -46,7 +46,7 @@ void HostCache::Set(const Key& key,
if (caching_is_disabled())
return;
- entries_.Put(key, Entry(error, addrlist), now, ttl);
+ entries_.Put(key, Entry(error, addrlist), now, now + ttl);
}
void HostCache::clear() {

Powered by Google App Engine
This is Rietveld 408576698