mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
MessageLoopCurrent
This commit is contained in:
committed by
Aleksei Kuzmin
parent
08265ba3e2
commit
5d9ba8b821
@@ -44,11 +44,7 @@ void HoldRefCallback(const scoped_refptr<PrintJobWorkerOwner>& owner,
|
||||
|
||||
PrintJob::PrintJob()
|
||||
: is_job_pending_(false), is_canceling_(false), quit_factory_(this) {
|
||||
// This is normally a UI message loop, but in unit tests, the message loop is
|
||||
// of the 'default' type.
|
||||
DCHECK(base::MessageLoopForUI::IsCurrent() ||
|
||||
base::MessageLoop::current()->type() ==
|
||||
base::MessageLoop::TYPE_DEFAULT);
|
||||
DCHECK(base::MessageLoopForUI::IsCurrent());
|
||||
}
|
||||
|
||||
PrintJob::~PrintJob() {
|
||||
|
||||
Reference in New Issue
Block a user