diff options
Diffstat (limited to 'components/navigation_interception')
-rw-r--r-- | components/navigation_interception/intercept_navigation_delegate.cc | 2 | ||||
-rw-r--r-- | components/navigation_interception/intercept_navigation_resource_throttle.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/components/navigation_interception/intercept_navigation_delegate.cc b/components/navigation_interception/intercept_navigation_delegate.cc index aec92e7..7de30a5 100644 --- a/components/navigation_interception/intercept_navigation_delegate.cc +++ b/components/navigation_interception/intercept_navigation_delegate.cc @@ -32,7 +32,7 @@ const void* kInterceptNavigationDelegateUserDataKey = bool CheckIfShouldIgnoreNavigationOnUIThread(WebContents* source, const NavigationParams& params) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(source); InterceptNavigationDelegate* intercept_navigation_delegate = diff --git a/components/navigation_interception/intercept_navigation_resource_throttle.cc b/components/navigation_interception/intercept_navigation_resource_throttle.cc index 675c060..05741e6 100644 --- a/components/navigation_interception/intercept_navigation_resource_throttle.cc +++ b/components/navigation_interception/intercept_navigation_resource_throttle.cc @@ -73,7 +73,7 @@ InterceptNavigationResourceThrottle::InterceptNavigationResourceThrottle( } InterceptNavigationResourceThrottle::~InterceptNavigationResourceThrottle() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + DCHECK_CURRENTLY_ON(BrowserThread::IO); } void InterceptNavigationResourceThrottle::WillStartRequest(bool* defer) { @@ -134,7 +134,7 @@ bool InterceptNavigationResourceThrottle::CheckIfShouldIgnoreNavigation( void InterceptNavigationResourceThrottle::OnResultObtained( bool should_ignore_navigation) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + DCHECK_CURRENTLY_ON(BrowserThread::IO); if (should_ignore_navigation) { controller()->CancelAndIgnore(); |