Update dns_transaction.cc

This commit is contained in:
Alexander David Frick 2022-06-14 00:10:12 -07:00 committed by GitHub
parent 6e6a910ffd
commit aadcb1f8ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1258,14 +1258,7 @@ class DnsTransactionImpl : public DnsTransaction,
net_log_.EndEventWithNetErrorCode(NetLogEventType::DNS_TRANSACTION,
result.rv);
absl::optional<std::string> doh_provider_id;
if (secure_ && result.attempt) {
size_t server_index = result.attempt->server_index();
doh_provider_id = GetDohProviderIdForHistogramFromServerConfig(
session_->config().doh_config.servers()[server_index]);
}
std::move(callback_).Run(result.rv, response, doh_provider_id);
std::move(callback_).Run(result.rv, response);
}
void RecordAttemptUma(DnsAttemptType attempt_type) {