Index: chrome/browser/ssl/ssl_client_auth_observer.cc |
diff --git a/chrome/browser/ssl/ssl_client_auth_observer.cc b/chrome/browser/ssl/ssl_client_auth_observer.cc |
index acbdddd0003f40be4eadf8dc5276d5f2c039580e..4a2dedb74822bb6ea55eacf54c087ce08714ed31 100644 |
--- a/chrome/browser/ssl/ssl_client_auth_observer.cc |
+++ b/chrome/browser/ssl/ssl_client_auth_observer.cc |
@@ -67,7 +67,7 @@ void SSLClientAuthObserver::Observe( |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
DVLOG(1) << "SSLClientAuthObserver::Observe " << this; |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DCHECK(type == chrome::NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED); |
CertDetails* cert_details = content::Details<CertDetails>(details).ptr(); |
@@ -84,13 +84,13 @@ void SSLClientAuthObserver::Observe( |
} |
void SSLClientAuthObserver::StartObserving() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
notification_registrar_.Add( |
this, chrome::NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED, |
content::Source<content::BrowserContext>(browser_context_)); |
} |
void SSLClientAuthObserver::StopObserving() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
notification_registrar_.RemoveAll(); |
} |