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

Unified Diff: net/base/dns_util.cc

Issue 54623005: net: allow invalid TransportSecurityState to process invalid DNS names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser tests. Created 7 years, 1 month 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 | « net/base/dns_util.h ('k') | net/base/dns_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/dns_util.cc
diff --git a/net/base/dns_util.cc b/net/base/dns_util.cc
index 5d47d4b8b5a4ac57720703927141788f1d5eceb5..c095eb80ad6cd49bb0e61d8c9c9f9eafdfc48e3d 100644
--- a/net/base/dns_util.cc
+++ b/net/base/dns_util.cc
@@ -80,20 +80,6 @@ std::string DNSDomainToString(const base::StringPiece& domain) {
return ret;
}
-bool IsSTD3ASCIIValidCharacter(char c) {
- if (c <= 0x2c)
- return false;
- if (c >= 0x7b)
- return false;
- if (c >= 0x2e && c <= 0x2f)
- return false;
- if (c >= 0x3a && c <= 0x40)
- return false;
- if (c >= 0x5b && c <= 0x60)
- return false;
- return true;
-}
-
std::string TrimEndingDot(const base::StringPiece& host) {
base::StringPiece host_trimmed = host;
size_t len = host_trimmed.length();
« no previous file with comments | « net/base/dns_util.h ('k') | net/base/dns_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698