Index: net/cert/x509_certificate.h |
diff --git a/net/cert/x509_certificate.h b/net/cert/x509_certificate.h |
index 7840292a9ecd158234a842b861649349ae0d569e..8d52365b087f5cb165f4005c5c673fc5a048036e 100644 |
--- a/net/cert/x509_certificate.h |
+++ b/net/cert/x509_certificate.h |
@@ -192,10 +192,13 @@ class NET_EXPORT X509Certificate |
const base::Time& valid_start() const { return valid_start_; } |
const base::Time& valid_expiry() const { return valid_expiry_; } |
- // Gets the DNS names in the certificate. Pursuant to RFC 2818, Section 3.1 |
+ // Gets the DNS names in the certificate. Pursuant to RFC 2818, Section 3.1 |
// Server Identity, if the certificate has a subjectAltName extension of |
// type dNSName, this method gets the DNS names in that extension. |
// Otherwise, it gets the common name in the subject field. |
+ // |
+ // Note: Chrome has deprecated fallback to the subject field, see |
+ // https://crbug.com/308330; prefer GetSubjectAltName() instead. |
void GetDNSNames(std::vector<std::string>* dns_names) const; |
// Gets the subjectAltName extension field from the certificate, if any. |