summaryrefslogtreecommitdiffstats
path: root/net/dns/dns_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns/dns_transaction.cc')
-rw-r--r--net/dns/dns_transaction.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/dns/dns_transaction.cc b/net/dns/dns_transaction.cc
index 30fd7bf..a7fa922 100644
--- a/net/dns/dns_transaction.cc
+++ b/net/dns/dns_transaction.cc
@@ -84,7 +84,8 @@ class DnsTransactionStartParameters : public NetLog::EventParameters {
dict->SetString("dns_server", dns_server_.ToString());
dict->SetString("hostname", hostname);
dict->SetInteger("query_type", key_.second);
- dict->Set("source_dependency", source_.ToValue());
+ if (source_.is_valid())
+ dict->Set("source_dependency", source_.ToValue());
return dict;
}
@@ -107,7 +108,8 @@ class DnsTransactionFinishParameters : public NetLog::EventParameters {
list->Append(Value::CreateStringValue(IPAddressToString(*it)));
DictionaryValue* dict = new DictionaryValue();
- dict->SetInteger("net_error", net_error_);
+ if (net_error_)
+ dict->SetInteger("net_error", net_error_);
dict->Set("address_list", list);
return dict;
}
@@ -247,7 +249,7 @@ int DnsTransaction::DoConnect() {
socket_.reset(socket_factory_->CreateDatagramClientSocket(
DatagramSocket::RANDOM_BIND,
base::Bind(&base::RandInt),
- NULL,
+ net_log_.net_log(),
net_log_.source()));
net_log_.AddEvent(