diff options
-rw-r--r-- | net/socket/ssl_host_info.cc | 22 | ||||
-rw-r--r-- | net/socket/ssl_host_info.h | 7 |
2 files changed, 1 insertions, 28 deletions
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc index bd7a4ad..1fcc053 100644 --- a/net/socket/ssl_host_info.cc +++ b/net/socket/ssl_host_info.cc @@ -76,20 +76,6 @@ SSLHostInfo::State* SSLHostInfo::mutable_state() { return &state_; } -void SSLHostInfo::set_cert_verification_finished_time() { -#if defined(OS_LINUX) - if (dnsrr_resolver_ && dns_handle_ == DnsRRResolver::kInvalidHandle) { - // We have completed the DNS lookup already. Therefore, waiting for the DNS - // lookup would cause no delay. - UMA_HISTOGRAM_TIMES("Net.SSLHostInfoDNSLookupDelayMs", base::TimeDelta()); - } else { - // The actual delay will be calculated when the DNS lookup finishes, in - // DnsComplete. - cert_verification_finished_time_ = base::TimeTicks::Now(); - } -#endif -} - bool SSLHostInfo::Parse(const std::string& data) { State* state = mutable_state(); @@ -238,16 +224,10 @@ void SSLHostInfo::DnsComplete(int rv) { dns_callback_ = NULL; const base::TimeTicks now = base::TimeTicks::Now(); - base::TimeDelta elapsed = now - dns_lookup_start_time_; + const base::TimeDelta elapsed = now - dns_lookup_start_time_; UMA_HISTOGRAM_TIMES("Net.SSLHostInfoDNSLookup", elapsed); - - if (!cert_verification_finished_time_.is_null()) { - elapsed = now - cert_verification_finished_time_; - UMA_HISTOGRAM_TIMES("Net.SSLHostInfoDNSLookupDelayMs", elapsed); - } } - SSLHostInfoFactory::~SSLHostInfoFactory() {} } // namespace net diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h index 276888b..c384e2e 100644 --- a/net/socket/ssl_host_info.h +++ b/net/socket/ssl_host_info.h @@ -106,12 +106,6 @@ class SSLHostInfo { return verification_end_time_; } - // set_cert_verification_finished_time allows the SSL socket to tell us when - // it finished verifing the certificate. If the DNS request hasn't finished - // by this time then we record how long we would have had to have waited for - // it. - void set_cert_verification_finished_time(); - protected: // Parse parses an opaque blob of data and fills out the public member fields // of this object. It returns true iff the parse was successful. The public @@ -152,7 +146,6 @@ class SSLHostInfo { DnsRRResolver::Handle dns_handle_; RRResponse dns_response_; base::TimeTicks dns_lookup_start_time_; - base::TimeTicks cert_verification_finished_time_; }; class SSLHostInfoFactory { |