Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: chrome/browser/prerender/prerender_message_filter.cc

Issue 1104043002: favor DCHECK_CURRENTLY_ON for better logs in chrome/browser/prerender/, prefetch and printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding files Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_message_filter.cc
diff --git a/chrome/browser/prerender/prerender_message_filter.cc b/chrome/browser/prerender/prerender_message_filter.cc
index 4a306d8d7560f4e1ee77d41446501049e77208b7..11aeffd80791c9c3594f951ad13d6ca61af89118 100644
--- a/chrome/browser/prerender/prerender_message_filter.cc
+++ b/chrome/browser/prerender/prerender_message_filter.cc
@@ -96,7 +96,7 @@ void PrerenderMessageFilter::OnAddPrerender(
const content::Referrer& referrer,
const gfx::Size& size,
int render_view_route_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!prerender_link_manager_)
return;
prerender_link_manager_->OnAddPrerender(
@@ -107,7 +107,7 @@ void PrerenderMessageFilter::OnAddPrerender(
void PrerenderMessageFilter::OnCancelPrerender(
int prerender_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!prerender_link_manager_)
return;
prerender_link_manager_->OnCancelPrerender(render_process_id_, prerender_id);
@@ -115,7 +115,7 @@ void PrerenderMessageFilter::OnCancelPrerender(
void PrerenderMessageFilter::OnAbandonPrerender(
int prerender_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!prerender_link_manager_)
return;
prerender_link_manager_->OnAbandonPrerender(render_process_id_, prerender_id);
@@ -127,7 +127,7 @@ void PrerenderMessageFilter::ShutdownOnUIThread() {
}
void PrerenderMessageFilter::OnChannelClosingInUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!prerender_link_manager_)
return;
prerender_link_manager_->OnChannelClosing(render_process_id_);
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698