summaryrefslogtreecommitdiffstats
path: root/net/base/dns_reloader.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-20 08:59:52 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-20 08:59:52 +0000
commit9d434e21296a0e506552e3a660101efa3403a2fe (patch)
tree803c1135d85c4f2cfd461f8cff4b59ba155c3da1 /net/base/dns_reloader.cc
parentb52692395da5bc509a76cb88aa6cb456eda3a82e (diff)
downloadchromium_src-9d434e21296a0e506552e3a660101efa3403a2fe.zip
chromium_src-9d434e21296a0e506552e3a660101efa3403a2fe.tar.gz
chromium_src-9d434e21296a0e506552e3a660101efa3403a2fe.tar.bz2
Removes MessageLoop::Type checks in favor of IsCurrent on MessageLoops.
This is part of removing the MessageLoop::Type enum. BUG=none TEST=none R=darin@chromium.org Review URL: https://codereview.chromium.org/141683005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/dns_reloader.cc')
-rw-r--r--net/base/dns_reloader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/dns_reloader.cc b/net/base/dns_reloader.cc
index 1902820..04abcb1 100644
--- a/net/base/dns_reloader.cc
+++ b/net/base/dns_reloader.cc
@@ -47,7 +47,7 @@ class DnsReloader : public net::NetworkChangeNotifier::DNSObserver {
// NetworkChangeNotifier::DNSObserver:
virtual void OnDNSChanged() OVERRIDE {
- DCHECK_EQ(base::MessageLoop::current()->type(), base::MessageLoop::TYPE_IO);
+ DCHECK(base::MessageLoopForIO::IsCurrent());
base::AutoLock l(lock_);
resolver_generation_++;
}