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

Unified Diff: net/base/host_cache.cc

Issue 10948048: [net] Increase HostCache size to 1000 entries on CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_cache.cc
diff --git a/net/base/host_cache.cc b/net/base/host_cache.cc
index ae0169cf3b58b84598d8e5bbd73303ae5de0c68a..f94b6869d76bf4e0b1f76f6117ded61774c93c9f 100644
--- a/net/base/host_cache.cc
+++ b/net/base/host_cache.cc
@@ -72,7 +72,14 @@ const HostCache::EntryMap& HostCache::entries() const {
// static
HostCache* HostCache::CreateDefaultCache() {
+#if defined(OS_CHROMEOS)
+ // Increase HostCache size for the duration of the async DNS field trial.
+ // http://crbug.com/143454
+ // TODO(szym): Determine the best size. http://crbug.com/114277
+ static const size_t kMaxHostCacheEntries = 1000;
+#else
static const size_t kMaxHostCacheEntries = 100;
jar (doing other things) 2012/09/20 17:24:34 nit: static on these data items seems like a waste
+#endif
return new HostCache(kMaxHostCacheEntries);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698