diff options
author | mostynb <mostynb@opera.com> | 2015-03-25 14:51:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-25 21:52:01 +0000 |
commit | ad1e8c96d325af5efcb730c027ed240b2a8d19cb (patch) | |
tree | d054f2ee8d353c669e7accbd22acdb5799554bf9 /components/navigation_interception | |
parent | 558ef66f1c98917559888e22e813002d6626e3ff (diff) | |
download | chromium_src-ad1e8c96d325af5efcb730c027ed240b2a8d19cb.zip chromium_src-ad1e8c96d325af5efcb730c027ed240b2a8d19cb.tar.gz chromium_src-ad1e8c96d325af5efcb730c027ed240b2a8d19cb.tar.bz2 |
favor DCHECK_CURRENTLY_ON for better logs in components/
BUG=466848
Review URL: https://codereview.chromium.org/1004933003
Cr-Commit-Position: refs/heads/master@{#322240}
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(); |