Index: chrome/browser/printing/print_job.cc |
diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc |
index ae5a4fdbe200b3b684ea760902372973ff557de9..a899b1728c3529484c98d1efcf3ce946d434c590 100644 |
--- a/chrome/browser/printing/print_job.cc |
+++ b/chrome/browser/printing/print_job.cc |
@@ -44,7 +44,7 @@ PrintJob::PrintJob() |
DCHECK(ui_message_loop_); |
// This is normally a UI message loop, but in unit tests, the message loop is |
// of the 'default' type. |
- DCHECK(ui_message_loop_->type() == base::MessageLoop::TYPE_UI || |
+ DCHECK(base::MessageLoopForUI::IsCurrent() || |
ui_message_loop_->type() == base::MessageLoop::TYPE_DEFAULT); |
ui_message_loop_->AddDestructionObserver(this); |
} |