Index: chrome/browser/chromeos/offline/offline_load_page.cc |
diff --git a/chrome/browser/chromeos/offline/offline_load_page.cc b/chrome/browser/chromeos/offline/offline_load_page.cc |
index 55f590eebd02d9d326017eec6549b75be7e61c3f..2e80a2251580236d4367635042fb76dbd1b85cfd 100644 |
--- a/chrome/browser/chromeos/offline/offline_load_page.cc |
+++ b/chrome/browser/chromeos/offline/offline_load_page.cc |
@@ -60,7 +60,7 @@ OfflineLoadPage::OfflineLoadPage(WebContents* web_contents, |
} |
OfflineLoadPage::~OfflineLoadPage() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this); |
} |
@@ -111,13 +111,13 @@ void OfflineLoadPage::OverrideRendererPrefs( |
} |
void OfflineLoadPage::OnProceed() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
proceeded_ = true; |
NotifyBlockingPageComplete(true); |
} |
void OfflineLoadPage::OnDontProceed() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
// Ignore if it's already proceeded. |
if (proceeded_) |
return; |
@@ -157,7 +157,7 @@ void OfflineLoadPage::NotifyBlockingPageComplete(bool proceed) { |
void OfflineLoadPage::OnConnectionTypeChanged( |
net::NetworkChangeNotifier::ConnectionType type) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
const bool online = type != net::NetworkChangeNotifier::CONNECTION_NONE; |
DVLOG(1) << "ConnectionTypeObserver notification received: state=" |
<< (online ? "online" : "offline"); |