diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 00:39:18 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 00:39:18 +0000 |
commit | f092e64b1350aa08f904fd3259c6918794acd2c8 (patch) | |
tree | 060929241d1c5e0a6fbd059ac985cd5318fdce7d | |
parent | c92c75056e673bcaa04683e382414e2fa02aa714 (diff) | |
download | chromium_src-f092e64b1350aa08f904fd3259c6918794acd2c8.zip chromium_src-f092e64b1350aa08f904fd3259c6918794acd2c8.tar.gz chromium_src-f092e64b1350aa08f904fd3259c6918794acd2c8.tar.bz2 |
Correct readability items from previous checkin
See http://src.chromium.org/viewvc/chrome?view=rev&revision=41743
r=wtc
Review URL: http://codereview.chromium.org/1057001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41792 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/base/host_resolver_impl.cc | 15 | ||||
-rw-r--r-- | net/base/net_util.cc | 2 |
2 files changed, 9 insertions, 8 deletions
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc index 2120332..44bbe41 100644 --- a/net/base/host_resolver_impl.cc +++ b/net/base/host_resolver_impl.cc @@ -435,9 +435,9 @@ class HostResolverImpl::IPv6ProbeJob void Start() { DCHECK(IsOnOriginThread()); - const bool IS_SLOW = true; + const bool kIsSlow = true; WorkerPool::PostTask( - FROM_HERE, NewRunnableMethod(this, &IPv6ProbeJob::DoProbe), IS_SLOW); + FROM_HERE, NewRunnableMethod(this, &IPv6ProbeJob::DoProbe), kIsSlow); } // Cancels the current job. @@ -1095,11 +1095,12 @@ void HostResolverImpl::IPv6ProbeSetDefaultAddressFamily( AddressFamily address_family) { DCHECK(address_family == ADDRESS_FAMILY_UNSPECIFIED || address_family == ADDRESS_FAMILY_IPV4); - if (default_address_family_ != address_family) - LOG(INFO) << "IPv6Probe forced AddressFamily setting to " - << ((address_family == ADDRESS_FAMILY_UNSPECIFIED) - ? "ADDRESS_FAMILY_UNSPECIFIED" - : "ADDRESS_FAMILY_IPV4"); + if (default_address_family_ != address_family) { + LOG(INFO) << "IPv6Probe forced AddressFamily setting to " + << ((address_family == ADDRESS_FAMILY_UNSPECIFIED) + ? "ADDRESS_FAMILY_UNSPECIFIED" + : "ADDRESS_FAMILY_IPV4"); + } default_address_family_ = address_family; // Drop reference since the job has called us back. DiscardIPv6ProbeJob(); diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 29d804e..e226659 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -1606,7 +1606,7 @@ bool IPv6Supported() { continue; // Safe cast since this is AF_INET6. struct sockaddr_in6* addr_in6 = - reinterpret_cast<struct sockaddr_in6*>(addr); + reinterpret_cast<struct sockaddr_in6*>(addr); struct in6_addr* sin6_addr = &addr_in6->sin6_addr; if (IN6_IS_ADDR_LOOPBACK(sin6_addr) || IN6_IS_ADDR_LINKLOCAL(sin6_addr)) continue; |