diff options
Diffstat (limited to 'net/base/dns_resolution_observer.cc')
-rw-r--r-- | net/base/dns_resolution_observer.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/base/dns_resolution_observer.cc b/net/base/dns_resolution_observer.cc index f65c2c6..71c2c10 100644 --- a/net/base/dns_resolution_observer.cc +++ b/net/base/dns_resolution_observer.cc @@ -20,10 +20,7 @@ void AddDnsResolutionObserver(DnsResolutionObserver* new_observer) { if (new_observer == dns_resolution_observer) return; // Facilitate unit tests that init/teardown repeatedly. DCHECK(!dns_resolution_observer); - if (InterlockedCompareExchangePointer( - reinterpret_cast<PVOID*>(&dns_resolution_observer), - new_observer, NULL)) - DCHECK(0) << "Second attempt to setup observer"; + dns_resolution_observer = new_observer; } DnsResolutionObserver* RemoveDnsResolutionObserver() { |