Index: net/base/host_cache.cc |
diff --git a/net/base/host_cache.cc b/net/base/host_cache.cc |
index cd98c1dc8fe398a5bc40eebca7fa76372e108b84..32f8c44a19180e2dbb9699bc3bf81cf7ad7f4ec3 100644 |
--- a/net/base/host_cache.cc |
+++ b/net/base/host_cache.cc |
@@ -84,12 +84,17 @@ const HostCache::EntryMap& HostCache::entries() const { |
// static |
scoped_ptr<HostCache> HostCache::CreateDefaultCache() { |
// Cache capacity is determined by the field trial. |
+#if defined(ENABLE_BUILT_IN_DNS) |
+ const size_t kDefaultMaxEntries = 1000; |
+#else |
+ const size_t kDefaultMaxEntries = 100; |
+#endif |
const size_t kSaneMaxEntries = 1 << 20; |
size_t max_entries = 0; |
base::StringToSizeT(base::FieldTrialList::FindFullName("HostCacheSize"), |
&max_entries); |
if ((max_entries == 0) || (max_entries > kSaneMaxEntries)) |
- max_entries = 100; |
+ max_entries = kDefaultMaxEntries; |
return make_scoped_ptr(new HostCache(max_entries)); |
} |