Index: chrome/browser/safe_browsing/malware_details_history.cc |
diff --git a/chrome/browser/safe_browsing/malware_details_history.cc b/chrome/browser/safe_browsing/malware_details_history.cc |
index a9038c1d7289aecdc331fdb2ee372585828037e2..500513809e79b7570715cb77f3aca6a0ab980481 100644 |
--- a/chrome/browser/safe_browsing/malware_details_history.cc |
+++ b/chrome/browser/safe_browsing/malware_details_history.cc |
@@ -24,7 +24,7 @@ MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector( |
Profile* profile) |
: profile_(profile), |
has_started_(false) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
if (profile) { |
registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED, |
content::Source<Profile>(profile)); |
@@ -62,7 +62,7 @@ void MalwareDetailsRedirectsCollector::Observe( |
int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK_EQ(type, chrome::NOTIFICATION_PROFILE_DESTROYED); |
DVLOG(1) << "Profile gone."; |
profile_ = NULL; |
@@ -73,7 +73,7 @@ MalwareDetailsRedirectsCollector::~MalwareDetailsRedirectsCollector() {} |
void MalwareDetailsRedirectsCollector::StartGetRedirects( |
const std::vector<GURL>& urls) { |
// History access from profile needs to happen in UI thread |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
for (size_t i = 0; i < urls.size(); ++i) { |
urls_.push_back(urls[i]); |
} |
@@ -82,7 +82,7 @@ void MalwareDetailsRedirectsCollector::StartGetRedirects( |
} |
void MalwareDetailsRedirectsCollector::GetRedirects(const GURL& url) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
if (!profile_) { |
AllDone(); |
return; |