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

Unified Diff: net/dns/dns_hosts.cc

Issue 18302003: Increase kMaxHostsSize to 32M (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clarify comment. Created 7 years, 5 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/dns/dns_hosts.cc
diff --git a/net/dns/dns_hosts.cc b/net/dns/dns_hosts.cc
index 60cac9bfb5b66e376cf0ec11531f91ffc896618b..5aa4aaabbd25cf5ec989c503ed8ab9cbb2345646 100644
--- a/net/dns/dns_hosts.cc
+++ b/net/dns/dns_hosts.cc
@@ -148,8 +148,8 @@ bool ParseHostsFile(const base::FilePath& path, DnsHosts* dns_hosts) {
UMA_HISTOGRAM_COUNTS("AsyncDNS.HostsSize", size);
- // Reject HOSTS files larger than |kMaxHostsSize|.
- const int64 kMaxHostsSize = 1 << 16;
+ // Reject HOSTS files larger than |kMaxHostsSize| bytes.
+ const int64 kMaxHostsSize = 1 << 25; // 32MB
if (size > kMaxHostsSize)
return false;
« 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