summaryrefslogtreecommitdiffstats
path: root/components/navigation_interception
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2015-03-25 14:51:12 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 21:52:01 +0000
commitad1e8c96d325af5efcb730c027ed240b2a8d19cb (patch)
treed054f2ee8d353c669e7accbd22acdb5799554bf9 /components/navigation_interception
parent558ef66f1c98917559888e22e813002d6626e3ff (diff)
downloadchromium_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.cc2
-rw-r--r--components/navigation_interception/intercept_navigation_resource_throttle.cc4
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();